The starting value of the interpolation.
The ending value of the interpolation.
A ratio between 0 and 1 that determines the weight of max
.
A value of 0 returns min
, a value of 1 returns max
, and values in between return the interpolated result.
The interpolated value.
Linearly interpolates between two values based on a given ratio.
The interpolation is calculated using the formula: