pub struct Inertial {
pub mass: f64,
pub com: V3,
pub inertia: M3,
}Expand description
Mass, centre of mass and inertia about it, in a body’s frame.
Fields§
§mass: f64§com: V3§inertia: M3Implementations§
Source§impl Inertial
impl Inertial
Sourcepub fn merged(&self, other: &Inertial, rot: &M3, pos: V3) -> Inertial
pub fn merged(&self, other: &Inertial, rot: &M3, pos: V3) -> Inertial
The two bodies as one, other given in a frame that rot, pos put into this one (parallel axis theorem).
Sourcepub fn changed(&self, factor: f64, moment: V3) -> Inertial
pub fn changed(&self, factor: f64, moment: V3) -> Inertial
Mass, first moment m c and inertia about the frame’s origin all times factor, then moment added to the first
moment, the mass and the inertia about the origin kept (the parameters the dynamics is linear in); back as mass,
centre and inertia about it. factor has to be positive.
Trait Implementations§
impl Copy for Inertial
impl StructuralPartialEq for Inertial
Auto Trait Implementations§
impl Freeze for Inertial
impl RefUnwindSafe for Inertial
impl Send for Inertial
impl Sync for Inertial
impl Unpin for Inertial
impl UnsafeUnpin for Inertial
impl UnwindSafe for Inertial
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