phoboss 0.0.3

Phobos celestial simulation crate for the MilkyWay SolarSystem workspace
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
fn main() {
    let eclipse = phoboss::lighting::eclipses::typical_phobos_eclipse();
    println!(
        "Totality: {:.1} minutes",
        eclipse.totality_duration_minutes()
    );
    println!(
        "Solar elevation at noon: {:.1} deg",
        phoboss::lighting::solar_position::solar_elevation_deg(0.0, 7.66 * 0.5)
    );
    println!(
        "Planetshine: {:.2} lux",
        phoboss::lighting::marsshine::marsshine_irradiance_lux(0.7)
    );
}