InterpolationNode.Interpolation


public final class InterpolationNode.Interpolation


Interpolation functions for use in an InterpolationNode.

Summary

Public fields

static final @NonNull InterpolationNode.Interpolation

Inverse linear interpolation.

static final @NonNull InterpolationNode.Interpolation

Linear interpolation.

Public methods

@NonNull String

Public fields

INVERSE_LERP

public static final @NonNull InterpolationNode.Interpolation INVERSE_LERP

Inverse linear interpolation. Evaluates to 0 when the InterpolationNode.paramInput value is equal to the InterpolationNode.startInput value, and to 1 when the parameter is equal to the InterpolationNode.endInput value. Evaluates to null when the InterpolationNode.startInput and InterpolationNode.endInput values are equal.

LERP

public static final @NonNull InterpolationNode.Interpolation LERP

Linear interpolation. Evaluates to the InterpolationNode.startInput value when the InterpolationNode.paramInput value is 0, and to the InterpolationNode.endInput value when the InterpolationNode.paramInput value is 1.

Public methods

toString

public @NonNull String toString()