InterpolationUtil

@ApiStatus.Internal
class InterpolationUtil

Interpolation util

Types

Link copied to clipboard
Vector point builder
Link copied to clipboard
Vector result

Companion functions

Link copied to clipboard
open fun alpha(p0: Float, p1: Float, alpha: Float): Float
Finds alpha value
Link copied to clipboard
open fun bezier(alpha: Float, start: Float, end: Float, bezierRightTime: Float, bezierRightValue: Float, bezierLeftTime: Float, bezierLeftValue: Float): Float
Link copied to clipboard
open fun catmull_rom(p0: Float, p1: Float, p2: Float, p3: Float, t: Float): Float
Link copied to clipboard
open fun floorTick(time: Float): Float
Rounds a time down to a 50 ms Minecraft tick.
Link copied to clipboard
@NotNull
open fun interpolatorFor(@NotNull vectors: @NotNull List<KeyframePoint>): @NotNull InterpolationUtil.VectorPointBuilder
Creates a vector sampler for nondecreasing sample times in seconds.
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
@NotNull
open fun lerp(@NotNull p0: @NotNull Vector3f, @NotNull p1: @NotNull Vector3f, alpha: Float, @NotNull dest: @NotNull Vector3f): @NotNull Vector3f
Lerps two point
Link copied to clipboard
open fun roundTick(time: Float): Float
Rounds a time to the nearest 50 ms Minecraft tick.