interpolate
Computes the linear interpolation of two values according to a specified fractional amount. The fractional amount is interpreted as a relative proportion of the two values, where 0.0 indicates the first value, 0.5 indicates a 50/50 mix of the two values, and 1.0 indicates the second value.
The result of this method is undefined if the amount is outside the range 0, 1.
Return
the interpolated value
Parameters
amount
the fractional proportion of the two values in the range 0, 1
value1
the first value
value2
the second value