Linear interpolation between 2 values
// Returns alerp(a,b,0)// Returns blerp(a,b,1)// Returns 5lerp(0,10,0.5)// Returns 2.5lerp(0,10,0.25)// Returns 10lerp(5,15,0.5)
The starting value
The ending value
The amount to interpolate
Generated using TypeDoc
Linear interpolation between 2 values
Example