stepLerp

public static float stepLerp(float start, float end, float t, float threshold)

Step interpolation - no interpolation, jumps at threshold

Parameters

start

Starting value

end

Ending value

t

Interpolation factor [0, 1]

threshold

When to jump from start to end


public static float stepLerp(float start, float end, float t)

Step interpolation with middle threshold