InterpolationUtil

@ApiStatus.Internal
class InterpolationUtil

Interpolation util

Types

Link copied to clipboard
Vector point builder

Functions

Link copied to clipboard
open fun alpha(p0: Float, p1: Float, alpha: Float): Float
Finds alpha value
Link copied to clipboard
@NotNull
open fun bezier(time: Float, startTime: Float, endTime: Float, @NotNull startValue: @NotNull Vector3f, @NotNull endValue: @NotNull Vector3f, @Nullable bezierLeftTime: @Nullable Vector3f, @Nullable bezierLeftValue: @Nullable Vector3f, @Nullable bezierRightTime: @Nullable Vector3f, @Nullable bezierRightValue: @Nullable Vector3f): @NotNull Vector3f
Interpolates two vectors as bezier
Link copied to clipboard
@NotNull
@Unmodifiable
open fun buildAnimation(@NotNull position: @NotNull List<VectorPoint>, @NotNull rotation: @NotNull List<VectorPoint>, @NotNull scale: @NotNull List<VectorPoint>, @NotNull points: @NotNull FloatSortedSet): @NotNull @Unmodifiable List<AnimationMovement>
Builds animation movement
Link copied to clipboard
@NotNull
open fun catmull_rom(@NotNull p0: @NotNull Vector3f, @NotNull p1: @NotNull Vector3f, @NotNull p2: @NotNull Vector3f, @NotNull p3: @NotNull Vector3f, t: Float): @NotNull Vector3f
Interpolates four vectors as catmull-rom.
Link copied to clipboard
open fun insertLerpFrame(@NotNull frames: @NotNull FloatSortedSet)
open fun insertLerpFrame(@NotNull frames: @NotNull FloatSortedSet, frame: Float)
Inserts lerp frame to given set
Link copied to clipboard
@NotNull
open fun interpolatorFor(@NotNull vectors: @NotNull List<VectorPoint>): @NotNull InterpolationUtil.VectorPointBuilder
Creates interpolator
Link copied to clipboard
open fun lerp(p0: Float, p1: Float, alpha: Float): Float
@NotNull
open fun lerp(@NotNull p0: @NotNull Vector3f, @NotNull p1: @NotNull Vector3f, alpha: Float): @NotNull Vector3f
Lerps two point
Link copied to clipboard
open fun roundTime(time: Float): Float
Rounds float to frame time