moons 0.0.1

Moon celestial simulation crate for the MilkyWay SolarSystem workspace
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fn main() {
    let earth = moons::interactions::earths::ensure_earths_binary_or_simulate();

    let eclipse = moons::lighting::eclipses::typical_lunar_eclipse();
    let shader = moons::rendering::shaders::ShaderData::eclipse();

    println!(
        "mode={:?} orbital_period_d={:.3} totality_min={:.2} exposure={:.3}",
        earth.mode,
        earth.orbital_period_days,
        eclipse.totality_duration_minutes(),
        shader.exposure,
    );
}