Skip to main content

unwrap_angle

Function unwrap_angle 

Source
pub fn unwrap_angle(a: f64, reference: f64) -> f64
Expand description

The angle a, turned by whole turns to within half a turn of reference: in [reference - π, reference + π), how an angle measured in (-π, π] is followed on from the one before.