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

Trait implemented by inertia tensors.

Required Methods§

source

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

Applies this inertia tensor to a vector.

This is usually done by a matrix-vector multiplication.

source

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

Transforms this inertia tensor from local space to world space.

source

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

Computes this inertia tensor relative to a given point.

Implementors§

source§

impl<N> InertiaTensor<N, OPoint<N, Const<2>>, Matrix<N, Const<1>, Const<1>, ArrayStorage<N, 1, 1>>, Isometry<N, Unit<Complex<N>>, 2>> for Matrix<N, Const<1>, Const<1>, ArrayStorage<N, 1, 1>>where N: RealField + Copy,

source§

impl<N> InertiaTensor<N, OPoint<N, Const<3>>, Matrix<N, Const<nalgebra::::base::dimension::U3::{constant#0}>, Const<1>, ArrayStorage<N, 3, 1>>, Isometry<N, Unit<Quaternion<N>>, 3>> for Matrix<N, Const<nalgebra::::base::dimension::U3::{constant#0}>, Const<nalgebra::::base::dimension::U3::{constant#0}>, ArrayStorage<N, 3, 3>>where N: RealField + Copy,