titanss 0.0.2

Titan 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: "Mithrim Montes",
        elevation_m: 3_337.0,
        slope_deg: 20.0,
    }
}

pub fn secondary_feature() -> RimFeature {
    RimFeature {
        name: "Doom Mons",
        elevation_m: 1_450.0,
        slope_deg: 15.0,
    }
}