Function wrap_to_pi

Source
pub fn wrap_to_pi<T>(angle: T) -> T
Expand description

Wrap an angle to the range 0 to 2*pi radians This function is generic and can be used with any type that implements the necessary traits.