float invlerp(float a, float min, float max)
<vector> invlerp(<vector>a, <vector>min, <vector>max)
Returns the amount to mix
max to generate the
a. This is the inverse of the
The vector version operates component-wise, so the resulting vector will be the independent mixing amount for each dimension.
a is outside the range
max, values greater than
1 or less than
0 will be produced.
max are equal, the mixing value is