KeyframeAxis

class KeyframeAxis : Record, Function<Vector3f, Vector3f>

A set of scalar transformations applied independently to the three components of a keyframe vector.


var invertedX = KeyframeAxis.of(KeyframeAxis.OPERATOR_INVERT,
    KeyframeAxis.OPERATOR_NONE, KeyframeAxis.OPERATOR_NONE);

Since

3.7.0

Parameters

x

the X transformation

y

the Y transformation

z

the Z transformation

Constructors

Link copied to clipboard
constructor()

Companion properties

Link copied to clipboard
Leaves all three components unchanged.
Link copied to clipboard
Subtracts one from the component.
Link copied to clipboard
Negates the component.
Link copied to clipboard
Leaves the component unchanged.
Link copied to clipboard
Converts a component from model units to block units.
Link copied to clipboard
Converts scale factors to offsets by subtracting one from each component.

Companion functions

Link copied to clipboard
open fun <T> identity(): (T) -> T
Link copied to clipboard
@NotNull
open fun of(@NotNull x: @NotNull Float2FloatFunction, @NotNull y: @NotNull Float2FloatFunction, @NotNull z: @NotNull Float2FloatFunction): @NotNull KeyframeAxis
Creates a set of per-axis transformations.

Functions

Link copied to clipboard
open fun <V> andThen(after: (in R) -> out V): (T) -> V
Link copied to clipboard
@NotNull
open fun apply(@NotNull dest: @NotNull Vector3f): @NotNull Vector3f
Applies the X, Y, and Z transformations to the supplied vector in place.
Link copied to clipboard
open fun <V> compose(before: (in V) -> out T): (V) -> R
Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
abstract fun toString(): String