Function qsym2::auxiliary::geometry::normalise_rotation_angle

source ·
pub fn normalise_rotation_angle(rot_ang: f64, thresh: f64) -> (f64, u32)
Expand description

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.

§Arguments

  • rot_ang - A rotation angle.
  • thresh - A threshold for comparisons.

§Returns

The normalised rotation angle and the number of folds.