Package: alexandria

Function lerp

Lambda List

lerp (v a b)

Details

Returns the result of linear interpolation between a and b, using the interpolation coefficient v.

Examples

 (lerp 1/2 2 4) => 3
 (lerp 0.5 2 4) => 3.0