ioss 0.0.3

Io celestial simulation crate for the MilkyWay SolarSystem workspace
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct EclipseGeometry {
    pub umbra_radius_km: f64,
    pub relative_velocity_km_s: f64,
}

impl EclipseGeometry {
    pub fn totality_duration_minutes(&self) -> f64 {
        2.0 * self.umbra_radius_km / self.relative_velocity_km_s / 60.0
    }
}

pub fn typical_io_eclipse() -> EclipseGeometry {
    EclipseGeometry {
        umbra_radius_km: 69_911.0,
        relative_velocity_km_s: 17.3,
    }
}