Overloads
static float Lerp (float from, float to, float frac, bool clamp)

Parameters

NameTypeDescription
from float The "starting value" of the interpolation.
to float The "final value" of the interpolation.
frac float The fraction in range of 0 (will return value of ) to 1 (will return value of ).
clamp = True bool Whether to clamp the fraction between 0 and 1, and therefore the output value between and .

Returns

TypeDescription
float The result of linear interpolation.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.