Trait rhusics_core::Inertia
[−]
[src]
pub trait Inertia: Mul<Self, Output = Self> + Copy { type Orientation; fn infinite() -> Self; fn invert(&self) -> Self; fn tensor(&self, orientation: &Self::Orientation) -> Self; }
Moment of inertia, used for abstracting over 2D/3D inertia tensors
Associated Types
type Orientation
Orientation type for rotating the inertia to create a world space inertia tensor
Required Methods
fn infinite() -> Self
Return the infinite inertia
fn invert(&self) -> Self
Compute the inverse of the inertia
fn tensor(&self, orientation: &Self::Orientation) -> Self
Compute the inertia tensor in the bodies given orientation
Implementations on Foreign Types
impl Inertia for f32
[src]
impl Inertia for f64
[src]
impl<S> Inertia for Matrix3<S> where
S: BaseFloat,
[src]
S: BaseFloat,