Returns the linear interpolation between two numbers.
lerp(a, b, t)
a
The starting value.
b
The ending value.
t
The interpolation parameter.
The linear interpolation between the values calculated as a + (b - a) * t.
a + (b - a) * t
lerp(0, 1, 0.5)
0.5