MutualGravity
Defined in: coupled.rs:48
pub struct MutualGravity { pub mu_i: f64, pub mu_j: f64,}Mutual gravitational attraction between two bodies.
mu_i = G * m_i and mu_j = G * m_j in km³/s².
Newton’s third law: m_i * a_i + m_j * a_j = 0.
For r < 1e-10 km, returns zero accelerations (singularity guard).
Fields
Section titled “Fields”mu_i: f64
mu_j: f64