Calculates the unclamped linear interpolation of two numbers.
Number to linearly interpolate from.
Number to linearly interpolate to.
The interpolation factor. Values outside the range 0 to 1 extrapolate beyond a or b.
The linear interpolation of two numbers.
math.lerpUnclamped(0, 10, -0.5); // returns -5math.lerpUnclamped(0, 10, 0.5); // returns 5math.lerpUnclamped(0, 10, 1.5); // returns 15 Copy
math.lerpUnclamped(0, 10, -0.5); // returns -5math.lerpUnclamped(0, 10, 0.5); // returns 5math.lerpUnclamped(0, 10, 1.5); // returns 15
Calculates the unclamped linear interpolation of two numbers.