Angle (in degrees) to linearly interpolate from.
Angle (in degrees) to linearly interpolate to.
The value controlling the result of interpolation. When alpha is 0, a is returned. When alpha is 1, b is returned. Between 0 and 1, a linear interpolation between a and b is returned. alpha is clamped between 0 and 1.
The linear interpolation of two angles.
Calculates the linear interpolation of two angles ensuring that interpolation is correctly performed across the 360 to 0 degree boundary. Angles are supplied in degrees, and the interpolation always takes the shortest path (at most 180 degrees) from a to b, however many full turns apart they are. The result is not wrapped, so it can be outside the 0 to 360 range.