#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum DeimosRegion {
    LeadingHemisphere,
    TrailingHemisphere,
    NorthPolar,
    SouthPolar,
}

pub fn named_region(latitude_deg: f64, longitude_deg: f64) -> DeimosRegion {
    if latitude_deg > 60.0 {
        DeimosRegion::NorthPolar
    } else if latitude_deg < -60.0 {
        DeimosRegion::SouthPolar
    } else if (0.0..180.0).contains(&longitude_deg) {
        DeimosRegion::LeadingHemisphere
    } else {
        DeimosRegion::TrailingHemisphere
    }
}
