Skip to main content

normalize_latitude

Function normalize_latitude 

Source
pub fn normalize_latitude(lat: f64) -> f64
Expand description

Clamps latitude to the valid range [-90°, 90°].

Values outside the range are clamped to the nearest pole.