lerp

Linear interpolation (lerp) toward another rotation using spherical linear interpolation (SLERP).

For rotations, we use SLERP instead of linear interpolation in 2D to maintain constant angular velocity throughout the interpolation.

The interpolation follows the shortest path on the unit circle.

Return

the interpolated rotation

Parameters

other

the target rotation to interpolate toward

t

the interpolation parameter in range 0, 1