Skip to main content

total_kinetic_energy_1d

Function total_kinetic_energy_1d 

Source
pub fn total_kinetic_energy_1d(
    mass_a: f64,
    velocity_a: f64,
    mass_b: f64,
    velocity_b: f64,
) -> Option<f64>
Expand description

Computes the total kinetic energy of two one-dimensional bodies.