Skip to main content

orbital_sim/
orbital_sim.rs

1fn main() {
2    let earth_context = moons::interactions::earths::ensure_earths_binary_or_simulate();
3
4    let orbit = moons::physics::orbit::LunarOrbit::new();
5    let rotation = moons::physics::rotation::MoonRotation::new();
6
7    println!(
8        "mode={:?} earth_r_km={:.1} earth_theta_deg={:.2} earth_spin_deg={:.2} mean_motion={:.8} periapsis_m={:.0} eq_speed_m_s={:.4}",
9        earth_context.mode,
10        earth_context.orbital_radius_km,
11        earth_context.orbital_angle_deg,
12        earth_context.rotation_angle_deg,
13        orbit.mean_motion_rad_s(),
14        orbit.periapsis_m(),
15        rotation.equatorial_speed_m_s(),
16    );
17}