pub struct Inertia {
pub about_centre: [[f64; 3]; 3],
pub principal: [(f64, [f64; 3]); 3],
}Expand description
A solid’s inertia at unit density, in mm⁵ (times a density in mass per mm³ gives mass times mm²), in the solid’s frame.
Fields§
§about_centre: [[f64; 3]; 3]The inertia tensor about the centre of mass, row by row.
principal: [(f64, [f64; 3]); 3]The principal moments, smallest first, each with its axis through the centre of mass (unit length; right-handed in that order).
Trait Implementations§
impl Copy for Inertia
Source§impl<'de> Deserialize<'de> for Inertia
impl<'de> Deserialize<'de> for Inertia
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Inertia
Auto Trait Implementations§
impl Forget for Inertia
impl Freeze for Inertia
impl Move for Inertia
impl RefUnwindSafe for Inertia
impl Send for Inertia
impl Sync for Inertia
impl Unpin for Inertia
impl UnsafeUnpin for Inertia
impl UnwindSafe for Inertia
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more