venuss 0.0.2

Venus celestial simulation crate for the MilkyWay SolarSystem workspace
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub const J2000_EPOCH: f64 = 2_451_545.0;
pub struct VenusEpoch {
    pub julian_date: f64,
}
impl VenusEpoch {
    pub fn j2000() -> Self {
        Self {
            julian_date: J2000_EPOCH,
        }
    }
    pub fn advance_seconds(&mut self, seconds: f64) {
        self.julian_date += seconds / 86400.0;
    }
}