static float LerpInverse (float value, float from, float to, bool clamp)

Parameters

NameTypeDescription
value float The value relative to and .
from float The "starting value" of the interpolation. If is at this value or less, the function will return 0 or less.
to float The "final value" of the interpolation. If is at this value or greater, the function will return 1 or greater.
clamp = True bool Whether the return value is allowed to exceed range of 0 - 1.

Returns

TypeDescription
float The resulting fraction.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.