Skip to main content

solid_sphere_moment_of_inertia

Function solid_sphere_moment_of_inertia 

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

Computes solid-sphere moment of inertia using I = (2 / 5)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.