Skip to main content

total_mechanical_energy

Function total_mechanical_energy 

Source
pub fn total_mechanical_energy(
    bodies: &[CelestialBody3D],
    softening_m: f64,
) -> f64
Expand description

Evaluates total mechanical energy (kinetic + gravitational potential) of the system in Joules.