pub fn normalise_rotation_angle(rot_ang: f64, thresh: f64) -> (f64, u32)
Returns the rotation angle adjusted to be in the interval $(-\pi, +\pi]$ and the number of $2\pi$-folds required to bring the original angle to that interval.
(-\pi, +\pi]
2\pi
rot_ang
thresh
The normalised rotation angle and the number of folds.