#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum PhobosRegion {
    StickneyBasin,
    TrailingHemisphere,
    LeadingHemisphere,
    GrooveZone,
}

pub fn named_region(latitude_deg: f64, longitude_deg: f64) -> PhobosRegion {
    if (35.0..=65.0).contains(&longitude_deg) && latitude_deg.abs() < 20.0 {
        PhobosRegion::StickneyBasin
    } else if longitude_deg > 180.0 {
        PhobosRegion::TrailingHemisphere
    } else if latitude_deg.abs() > 45.0 {
        PhobosRegion::GrooveZone
    } else {
        PhobosRegion::LeadingHemisphere
    }
}
