Linear Interpolation

Syntax


y = lerp(x, x0, y0, x1, y1)

Description


Returns the linearly interpolated value between the points (x0, y0) and (x1, y1) at the passed value of x.

Example


y = lerp(4.86, 3.0, 5.0, 8.0, 1.0)