MathToolkit

public class MathToolkit

Constructors

Link copied to clipboard
public void MathToolkit()

Functions

Link copied to clipboard
public static float bezierLerp(float start, float end, float t, float cp1, float cp2)
Cubic Bezier interpolation
Link copied to clipboard
public static float lerp(float start, float end, float t)
Linear interpolation
Link copied to clipboard
public static float smoothLerp(float start, float end, float t)
Smooth interpolation using cubic easing (ease-in-out)
Link copied to clipboard
public static float stepLerp(float start, float end, float t)
Step interpolation with middle threshold
public static float stepLerp(float start, float end, float t, float threshold)
Step interpolation - no interpolation, jumps at threshold