eval

@NotNull
open fun eval(): @NotNull Vector3f

Evaluates this vector with the shared empty runtime context.


var position = KeyframeVector.ZERO.eval();

Return

a new vector containing the evaluated components

Since

3.7.0

Throws

if evaluating a component throws


@NotNull
open fun eval(@NotNull context: @NotNull KeyframeRuntimeContext): @NotNull Vector3f

Evaluates this vector with the supplied runtime context.


var position = vector.eval(context);

Return

a new vector containing the evaluated components

Since

3.7.0

Parameters

context

the runtime context passed to each component

Throws

if evaluating a component throws


@NotNull
open fun eval(@NotNull context: @NotNull KeyframeRuntimeContext, @NotNull dest: @NotNull Vector3f, @NotNull operator: @NotNull KeyframeOperator): @NotNull Vector3f

Evaluates each component and passes the results to a destination operation.


vector.eval(context, position, KeyframeOperator.ADD);

Return

the vector returned by the operation

Since

3.7.0

Parameters

context

the runtime context passed to each component

dest

the destination vector passed to the operation

operator

the operation that combines the evaluated values with the destination

Throws

if a component evaluation or the operation throws