oberons 0.0.2

Oberon celestial simulation crate for the MilkyWay SolarSystem workspace
Documentation
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum OberonRegion {
    CrateredHighlands,
    ChascataZone,
    SmoothPlains,
    PolarRegion,
}

pub fn named_region(latitude_deg: f64, longitude_deg: f64) -> OberonRegion {
    if latitude_deg.abs() > 60.0 {
        OberonRegion::PolarRegion
    } else if (-20.0..=0.0).contains(&latitude_deg) && (220.0..=260.0).contains(&longitude_deg) {
        OberonRegion::ChascataZone
    } else if longitude_deg > 150.0 {
        OberonRegion::SmoothPlains
    } else {
        OberonRegion::CrateredHighlands
    }
}