[][src]Trait nphysics2d::volumetric::InertiaTensor

pub trait InertiaTensor<N, P, AV, M> {
    fn apply(&self, a: &AV) -> AV;
fn to_world_space(&self, _: &M) -> Self;
fn to_relative_wrt_point(&self, _: N, _: &P) -> Self; }

Trait implemented by inertia tensors.

Required methods

fn apply(&self, a: &AV) -> AV

Applies this inertia tensor to a vector.

This is usually done by a matrix-vector multiplication.

fn to_world_space(&self, _: &M) -> Self

Transforms this inertia tensor from local space to world space.

fn to_relative_wrt_point(&self, _: N, _: &P) -> Self

Computes this inertia tensor relative to a given point.

Loading content...

Implementations on Foreign Types

impl<N: RealField> InertiaTensor<N, Point<N, U2>, Matrix<N, U1, U1, <DefaultAllocator as Allocator<N, U1, U1>>::Buffer>, Isometry<N, U2, Unit<Complex<N>>>> for Matrix1<N>[src]

impl<N: RealField> InertiaTensor<N, Point<N, U3>, Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>, Isometry<N, U3, Unit<Quaternion<N>>>> for Matrix3<N>[src]

Loading content...

Implementors

Loading content...