AnimationKeyframe

Represents a collection of animation keyframes, optimized for efficient storage and access.

This record stores an array of AnimationProgress objects, which define the state of a bone at specific time intervals. It implements TimedStorage for indexed access.

Since

2.0.0

Parameters

progresses

the array of animation progresses

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
class Builder
Builder for AnimationKeyframe.

Functions

Link copied to clipboard
@NotNull
open fun builder(size: Int, rotateGlobal: Boolean): @NotNull AnimationKeyframe.Builder
Creates a new builder for constructing an AnimationKeyframe.
Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
@NotNull
open fun get(i: Int): @NotNull AnimationProgress
Retrieves the element at the specified index.
Link copied to clipboard
@NotNull
open fun getLast(): @NotNull AnimationProgress
Retrieves the last element in the storage.
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
@NotNull
open fun <T : Timed?> listOf(@NotNull list: @NotNull List<T>): @NotNull TimedStorage<T>
Creates a TimedStorage backed by a List.
Link copied to clipboard
open fun size(): Int
Returns the number of elements in the storage.
Link copied to clipboard
@NotNull
open fun toEmpty(): @NotNull TimedStorage<AnimationProgress>
Converts this keyframe collection to a storage of empty progresses.
Link copied to clipboard
abstract fun toString(): String