callistos 0.0.3

Callisto 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 = callistos::lighting::eclipses::typical_callisto_eclipse();
    println!("Umbra radius: {} km", eclipse.umbra_radius_km);
    println!("Relative velocity: {} km/s", eclipse.relative_velocity_km_s);
    println!(
        "Totality duration: {:.1} minutes",
        eclipse.totality_duration_minutes()
    );

    let elev = callistos::lighting::solar_position::solar_elevation_deg(0.0, 200.0);
    println!("Solar elevation at noon equator: {:.1} deg", elev);

    let lux = callistos::lighting::jupitershine::jupitershine_irradiance_lux(0.7);
    println!("Jupitershine at 70% phase: {:.2} lux", lux);
}