pub fn total_mechanical_energy(
bodies: &[CelestialBody3D],
softening_m: f64,
) -> f64Expand description
Evaluates total mechanical energy (kinetic + gravitational potential) of the system in Joules.
pub fn total_mechanical_energy(
bodies: &[CelestialBody3D],
softening_m: f64,
) -> f64Evaluates total mechanical energy (kinetic + gravitational potential) of the system in Joules.