callistos 0.0.3

Callisto 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 valhalla_outer_ring() -> RimFeature {
    RimFeature {
        name: "Valhalla outer ring",
        elevation_m: 1_200.0,
        slope_deg: 12.0,
    }
}

pub fn asgard_rim() -> RimFeature {
    RimFeature {
        name: "Asgard rim",
        elevation_m: 900.0,
        slope_deg: 10.0,
    }
}