Skip to main content

wrap360

Function wrap360 

Source
pub fn wrap360(degrees: f64) -> f64
Expand description

Normalises a finite angle into [0.0, 360.0).

Correct for every finite input, including values below -360°, unlike (angle + 360.0) % 360.0.