Trait rhusics::physics::prelude2d::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

Orientation type for rotating the inertia to create a world space inertia tensor

Required Methods

Return the infinite inertia

Compute the inverse of the inertia

Compute the inertia tensor in the bodies given orientation

Implementations on Foreign Types

impl Inertia for f32
[src]

[src]

[src]

[src]

impl Inertia for f64
[src]

[src]

[src]

[src]

impl<S> Inertia for Matrix3<S> where
    S: BaseFloat
[src]

[src]

[src]

[src]

Implementors