pub fn angle_difference(from: f64, to: f64) -> f64
The signed shortest rotation from from to to, in [-pi, pi).
from
to
[-pi, pi)
A half turn is reported as -pi, so the result is deterministic for antipodal angles.
-pi