Constant

A timeline of pre-evaluated samples stored as consecutive X, Y, and Z components.


var timeline = new KeyframeTimeline.Constant(new float[] {1F, 2F, 3F});

Since

3.7.0

Parameters

value

the backing array of component triples, retained without copying

Constructors

Link copied to clipboard
constructor()

Companion functions

Link copied to clipboard
@NotNull
open fun constantBuilder(size: Int): @NotNull KeyframeTimeline.Builder
Creates a fixed-capacity builder for constant samples.
Link copied to clipboard
@NotNull
open fun runtimeBuilder(size: Int): @NotNull KeyframeTimeline.Builder
Creates a fixed-capacity builder that retains each vector for runtime evaluation.

Functions

Link copied to clipboard
@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.
Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
open fun isZero(index: Int): Boolean
Checks whether the stored sample is zero.
Link copied to clipboard
abstract fun toString(): String