lerpAngleDeg

fun lerpAngleDeg(fromDegrees: Float, toDegrees: Float, progress: Float): Float

Linearly interpolates between two angles in degrees. Takes into account that angles wrap at 360 degrees and always takes the direction with the smallest delta angle.

Return

the interpolated angle in the range [0, 360[

Parameters

fromDegrees

start angle in degrees

toDegrees

target angle in degrees

progress

interpolation value in the range 0, 1