Function normalize_angle
Source pub fn normalize_angle(angle: f64) -> f64
Expand description
Normalize angle to [0, 2π) range
§Arguments
§Returns
- Normalized angle in the range [0, 2π)
§Examples
use scirs2_spatial::geospatial::normalize_angle;
let normalized = normalize_angle(3.0 * std::f64::consts::PI);
assert!((normalized - std::f64::consts::PI).abs() < 1e-10);