Get the interpolant [t] that produces given value within the range [a, b].
Start value
End value
Value between start and end
Percentage of value between start and end
inverseLerp(2, 4, 3); // Returns 0.5 Copy
inverseLerp(2, 4, 3); // Returns 0.5
Generated using TypeDoc
Get the interpolant [t] that produces given value within the range [a, b].