apply

@NotNull
open fun apply(index: Int, @NotNull context: @NotNull KeyframeRuntimeContext, @NotNull dest: @NotNull Vector3f, @NotNull operator: @NotNull KeyframeOperator): @NotNull Vector3f

Applies the selected sample to the destination using the supplied operation.


timeline.apply(0, KeyframeRuntimeContext.empty(), new Vector3f(), KeyframeOperator.SET);

Return

the vector returned by the operation

Since

3.7.0

Parameters

index

the zero-based sample index

context

the runtime context used by runtime samples

dest

the destination vector passed to the operation

operator

the operation that combines the sample with the destination

Throws

if the sample index is outside this timeline

if runtime evaluation or the operation throws