Calculates the shortest signed difference between two angles (in radians).
Closed at the positive end, unlike wrapAngle, so a half turn apart reads as +π.
wrapAngle
the current angle
the target angle
the shortest signed difference in (-π, π]
Calculates the shortest signed difference between two angles (in radians).
Closed at the positive end, unlike
wrapAngle, so a half turn apart reads as +π.