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
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct TimeScale {
    pub multiplier: f64,
}

impl TimeScale {
    pub fn realtime() -> Self {
        Self { multiplier: 1.0 }
    }
    pub fn fast_forward(multiplier: f64) -> Self {
        Self { multiplier }
    }
    pub fn advance_seconds(&self, dt_seconds: f64) -> f64 {
        dt_seconds * self.multiplier
    }
}