#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum TitaniaRegion {
    CrateredPlains,
    ChascataZone,
    SmoothPlains,
    PolarRegion,
}

pub fn named_region(latitude_deg: f64, longitude_deg: f64) -> TitaniaRegion {
    if latitude_deg.abs() > 60.0 {
        TitaniaRegion::PolarRegion
    } else if (-40.0..=-20.0).contains(&latitude_deg) && (310.0..=350.0).contains(&longitude_deg) {
        TitaniaRegion::ChascataZone
    } else if longitude_deg > 180.0 {
        TitaniaRegion::SmoothPlains
    } else {
        TitaniaRegion::CrateredPlains
    }
}
