KeyframeVector
A compiled vector with a scalar Keyframe for each component.
var vector = KeyframeVector.of(Keyframe.of(2F), Keyframe.ZERO, Keyframe.ZERO);
var position = vector.eval();
Content copied to clipboard
Since
3.7.0
Parameters
x
the X keyframe
y
the Y keyframe
z
the Z keyframe
Companion functions
Link copied to clipboard
@NotNull
Combines two vectors by applying the same binary operation to each pair of components.
@NotNull
Combines two vectors using a separate binary operation for each axis.
@NotNull
Combines four vectors by applying the same operation to the four values on each axis.
Functions
Link copied to clipboard
Evaluates this vector with the shared empty runtime context.
Evaluates this vector with the supplied runtime context.
@NotNull
Evaluates each component and passes the results to a destination operation.
Link copied to clipboard
Checks whether all components are constant.
Link copied to clipboard
Applies the same scalar transformation to each component.
Link copied to clipboard
Multiplies each component by the supplied scalar weight.
Link copied to clipboard
Transforms each component with the corresponding axis mapping.