Skip to main content

point_mass_moment_of_inertia

Function point_mass_moment_of_inertia 

Source
pub fn point_mass_moment_of_inertia(mass: f64, radius: f64) -> Option<f64>
Expand description

Computes point-mass moment of inertia using I = mr².

Returns None when mass or radius is negative, when any input is not finite, or when the computed moment of inertia is not finite.