[−][src]Trait oxygengine_physics_2d::prelude::volumetric::InertiaTensor
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.
Implementors
impl<N> InertiaTensor<N, Point<N, U2>, Matrix<N, U1, U1, <DefaultAllocator as Allocator<N, U1, U1>>::Buffer>, Isometry<N, U2, Unit<Complex<N>>>> for Matrix<N, U1, U1, <DefaultAllocator as Allocator<N, U1, U1>>::Buffer> where
N: RealField,
[src]
N: RealField,
fn apply(
&self,
av: &Matrix<N, U1, U1, <DefaultAllocator as Allocator<N, U1, U1>>::Buffer>
) -> Matrix<N, U1, U1, <DefaultAllocator as Allocator<N, U1, U1>>::Buffer>
[src]
&self,
av: &Matrix<N, U1, U1, <DefaultAllocator as Allocator<N, U1, U1>>::Buffer>
) -> Matrix<N, U1, U1, <DefaultAllocator as Allocator<N, U1, U1>>::Buffer>
fn to_world_space(
&self,
&Isometry<N, U2, Unit<Complex<N>>>
) -> Matrix<N, U1, U1, <DefaultAllocator as Allocator<N, U1, U1>>::Buffer>
[src]
&self,
&Isometry<N, U2, Unit<Complex<N>>>
) -> Matrix<N, U1, U1, <DefaultAllocator as Allocator<N, U1, U1>>::Buffer>
fn to_relative_wrt_point(
&self,
mass: N,
pt: &Point<N, U2>
) -> Matrix<N, U1, U1, <DefaultAllocator as Allocator<N, U1, U1>>::Buffer>
[src]
&self,
mass: N,
pt: &Point<N, U2>
) -> Matrix<N, U1, U1, <DefaultAllocator as Allocator<N, U1, U1>>::Buffer>
impl<N> InertiaTensor<N, Point<N, U3>, Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>, Isometry<N, U3, Unit<Quaternion<N>>>> for Matrix<N, U3, U3, <DefaultAllocator as Allocator<N, U3, U3>>::Buffer> where
N: RealField,
[src]
N: RealField,
fn apply(
&self,
av: &Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>
) -> Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>
[src]
&self,
av: &Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>
) -> Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>
fn to_world_space(
&self,
t: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> Matrix<N, U3, U3, <DefaultAllocator as Allocator<N, U3, U3>>::Buffer>
[src]
&self,
t: &Isometry<N, U3, Unit<Quaternion<N>>>
) -> Matrix<N, U3, U3, <DefaultAllocator as Allocator<N, U3, U3>>::Buffer>
fn to_relative_wrt_point(
&self,
mass: N,
pt: &Point<N, U3>
) -> Matrix<N, U3, U3, <DefaultAllocator as Allocator<N, U3, U3>>::Buffer>
[src]
&self,
mass: N,
pt: &Point<N, U3>
) -> Matrix<N, U3, U3, <DefaultAllocator as Allocator<N, U3, U3>>::Buffer>