Get a value linearly interpolated between two endpoints.
the value that is t% from a to b
t%
a
b
lerp(0, 4, 0) === 0
lerp(0, 4, 0.5) === 2
lerp(0, 4, 1) === 4
the end point for the interpolation
the start point for the interpolation
the amount to interpolate. A value in the range 0<=t<=1
0<=t<=1
Generated using TypeDoc
Get a value linearly interpolated between two endpoints.
Returns
the value that is
t%
froma
tob
Example
Example
Example