oberons 0.0.1

Oberon celestial simulation crate for the MilkyWay SolarSystem workspace
Documentation
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct RimFeature {
    pub name: &'static str,
    pub elevation_m: f64,
    pub slope_deg: f64,
}

impl RimFeature {
    pub fn relief_energy(&self) -> f64 {
        self.elevation_m * self.slope_deg.to_radians().tan()
    }
}

pub fn primary_feature() -> RimFeature {
    RimFeature {
        name: "Mommur Chasma rim",
        elevation_m: 6_000.0,
        slope_deg: 25.0,
    }
}

pub fn secondary_feature() -> RimFeature {
    RimFeature {
        name: "Hamlet rim",
        elevation_m: 3_000.0,
        slope_deg: 15.0,
    }
}