Lerp
This function performs a linear interpolation between two values. The amount value controls what percent of the start and stop values the returned value consists of.
Syntax
- static float Lerp(const float start, const float stop, const float amount)
Parameters
- start: first value.
- stop: second value.
- amount: mix value. If this is 1.0, stop is returned. If this is 0.0, start is returned.
Returns
Returns the interpolated value.