Skip to main content

point_mass_moment_of_inertia

Function point_mass_moment_of_inertia 

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

Computes the moment of inertia for a point mass.

Formula: I = m * r²

Returns None when mass or radius is negative, when either input is not finite, or when the computed result is not finite.