[][src]Trait na::AbstractRotation

pub trait AbstractRotation<N, D>: Clone + PartialEq<Self> + ClosedMul<Self> where
    D: DimName,
    N: Scalar
{ fn identity() -> Self;
fn inverse(&self) -> Self;
fn inverse_mut(&mut self);
fn transform_vector(
        &self,
        v: &Matrix<N, D, U1, <DefaultAllocator as Allocator<N, D, U1>>::Buffer>
    ) -> Matrix<N, D, U1, <DefaultAllocator as Allocator<N, D, U1>>::Buffer>
    where
        DefaultAllocator: Allocator<N, D, U1>
;
fn transform_point(&self, p: &Point<N, D>) -> Point<N, D>
    where
        DefaultAllocator: Allocator<N, D, U1>
;
fn inverse_transform_vector(
        &self,
        v: &Matrix<N, D, U1, <DefaultAllocator as Allocator<N, D, U1>>::Buffer>
    ) -> Matrix<N, D, U1, <DefaultAllocator as Allocator<N, D, U1>>::Buffer>
    where
        DefaultAllocator: Allocator<N, D, U1>
;
fn inverse_transform_point(&self, p: &Point<N, D>) -> Point<N, D>
    where
        DefaultAllocator: Allocator<N, D, U1>
; }

Trait implemented by rotations that can be used inside of an Isometry or Similarity.

Required methods

fn identity() -> Self

The rotation identity.

fn inverse(&self) -> Self

The rotation inverse.

fn inverse_mut(&mut self)

Change self to its inverse.

fn transform_vector(
    &self,
    v: &Matrix<N, D, U1, <DefaultAllocator as Allocator<N, D, U1>>::Buffer>
) -> Matrix<N, D, U1, <DefaultAllocator as Allocator<N, D, U1>>::Buffer> where
    DefaultAllocator: Allocator<N, D, U1>, 

Apply the rotation to the given vector.

fn transform_point(&self, p: &Point<N, D>) -> Point<N, D> where
    DefaultAllocator: Allocator<N, D, U1>, 

Apply the rotation to the given point.

fn inverse_transform_vector(
    &self,
    v: &Matrix<N, D, U1, <DefaultAllocator as Allocator<N, D, U1>>::Buffer>
) -> Matrix<N, D, U1, <DefaultAllocator as Allocator<N, D, U1>>::Buffer> where
    DefaultAllocator: Allocator<N, D, U1>, 

Apply the inverse rotation to the given vector.

fn inverse_transform_point(&self, p: &Point<N, D>) -> Point<N, D> where
    DefaultAllocator: Allocator<N, D, U1>, 

Apply the inverse rotation to the given point.

Loading content...

Implementors

impl<N> AbstractRotation<N, U2> for Unit<Complex<N>> where
    N: SimdRealField,
    <N as SimdValue>::Element: SimdRealField
[src]

impl<N> AbstractRotation<N, U3> for Unit<Quaternion<N>> where
    N: SimdRealField,
    <N as SimdValue>::Element: SimdRealField
[src]

impl<N, D> AbstractRotation<N, D> for Rotation<N, D> where
    D: DimName,
    N: SimdRealField,
    <N as SimdValue>::Element: SimdRealField,
    DefaultAllocator: Allocator<N, D, D>, 
[src]

Loading content...