pub fn normalize_latitude(lat: f64) -> f64
Clamps latitude to the valid range [-90°, 90°].
Values outside the range are clamped to the nearest pole.