[][src]Trait aljabar::Rotation

pub trait Rotation<const DIMS: usize> where
    Self: Sized
{ type Scalar; fn rotate_vector(
        self,
        v: Vector<Self::Scalar, { DIMS }>
    ) -> Vector<Self::Scalar, { DIMS }>; fn rotate_point(
        self,
        p: Point<Self::Scalar, { DIMS }>
    ) -> Point<Self::Scalar, { DIMS }> { ... } }

A type that can rotate a Vector of a given dimension.

Associated Types

type Scalar

Loading content...

Required methods

fn rotate_vector(
    self,
    v: Vector<Self::Scalar, { DIMS }>
) -> Vector<Self::Scalar, { DIMS }>

Loading content...

Provided methods

fn rotate_point(
    self,
    p: Point<Self::Scalar, { DIMS }>
) -> Point<Self::Scalar, { DIMS }>

Loading content...

Implementors

impl<T> Rotation<3> for Quaternion<T> where
    T: Real + Clone
[src]

type Scalar = T

impl<T, const DIMS: usize> Rotation<DIMS> for Orthonormal<T, { DIMS }> where
    Matrix<T, { DIMS }, { DIMS }>: Mul<Vector<T, { DIMS }>, Output = Vector<T, { DIMS }>>, 
[src]

type Scalar = T

Loading content...