pub fn wrap_angle<T: Real + Rem<Output = T>>(x: T) -> TExpand description
Normalize an angle in radians to [-pi, pi].
ยงExamples
use mathverse_core::ops::wrap_angle;
let a = wrap_angle(core::f64::consts::PI + 0.1);
assert!((a - (-core::f64::consts::PI + 0.1)).abs() < 1e-15);