Trait nalgebra::Rotate
[−]
[src]
pub trait Rotate<V> { fn rotate(&self, v: &V) -> V; fn inv_rotate(&self, v: &V) -> V; }
Trait of objects able to rotate other objects.
This is typically implemented by matrices which rotate vectors.
Required Methods
fn rotate(&self, v: &V) -> V
Applies a rotation to v
.
fn inv_rotate(&self, v: &V) -> V
Applies an inverse rotation to v
.
Implementors
impl<N, O: Copy> Rotate<O> for Vec1<N>
impl<N, O: Copy> Rotate<O> for Pnt1<N>
impl<N, O: Copy> Rotate<O> for Vec2<N>
impl<N, O: Copy> Rotate<O> for Pnt2<N>
impl<N, O: Copy> Rotate<O> for Vec3<N>
impl<N, O: Copy> Rotate<O> for Pnt3<N>
impl<N, O: Copy> Rotate<O> for Vec4<N>
impl<N, O: Copy> Rotate<O> for Pnt4<N>
impl<N, O: Copy> Rotate<O> for Vec5<N>
impl<N, O: Copy> Rotate<O> for Pnt5<N>
impl<N, O: Copy> Rotate<O> for Vec6<N>
impl<N, O: Copy> Rotate<O> for Pnt6<N>
impl<N: BaseNum + Neg<Output=N>> Rotate<Vec3<N>> for UnitQuat<N>
impl<N: BaseNum + Neg<Output=N>> Rotate<Pnt3<N>> for UnitQuat<N>
impl<N: BaseNum> Rotate<Vec2<N>> for Rot2<N>
impl<N: BaseNum> Rotate<Pnt2<N>> for Rot2<N>
impl<N: BaseNum> Rotate<Vec3<N>> for Rot3<N>
impl<N: BaseNum> Rotate<Pnt3<N>> for Rot3<N>
impl<N: BaseNum> Rotate<Vec4<N>> for Rot4<N>
impl<N: BaseNum> Rotate<Pnt4<N>> for Rot4<N>
impl<N: BaseNum> Rotate<Vec2<N>> for Iso2<N>
impl<N: BaseNum> Rotate<Vec3<N>> for Iso3<N>
impl<N: BaseNum> Rotate<Vec4<N>> for Iso4<N>