Trait nphysics3d::volumetric::InertiaTensor [−][src]
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; }
Expand description
Trait implemented by inertia tensors.
Required methods
fn apply(&self, a: &AV) -> AV
[src]
fn apply(&self, a: &AV) -> AV
[src]Applies this inertia tensor to a vector.
This is usually done by a matrix-vector multiplication.
fn to_world_space(&self, _: &M) -> Self
[src]
fn to_world_space(&self, _: &M) -> Self
[src]Transforms this inertia tensor from local space to world space.
fn to_relative_wrt_point(&self, _: N, _: &P) -> Self
[src]
fn to_relative_wrt_point(&self, _: N, _: &P) -> Self
[src]Computes this inertia tensor relative to a given point.
Implementations on Foreign Types
impl<N: RealField> InertiaTensor<N, Point<N, 2_usize>, Matrix<N, Const<1_usize>, Const<1_usize>, ArrayStorage<N, 1_usize, 1_usize>>, Isometry<N, Unit<Complex<N>>, 2_usize>> for Matrix1<N>
[src]
impl<N: RealField> InertiaTensor<N, Point<N, 2_usize>, Matrix<N, Const<1_usize>, Const<1_usize>, ArrayStorage<N, 1_usize, 1_usize>>, Isometry<N, Unit<Complex<N>>, 2_usize>> for Matrix1<N>
[src]impl<N: RealField> InertiaTensor<N, Point<N, 3_usize>, Matrix<N, Const<{_: usize}>, Const<1_usize>, ArrayStorage<N, 3_usize, 1_usize>>, Isometry<N, Unit<Quaternion<N>>, 3_usize>> for Matrix3<N>
[src]
impl<N: RealField> InertiaTensor<N, Point<N, 3_usize>, Matrix<N, Const<{_: usize}>, Const<1_usize>, ArrayStorage<N, 3_usize, 1_usize>>, Isometry<N, Unit<Quaternion<N>>, 3_usize>> for Matrix3<N>
[src]