Trait nalgebra::Translate
[−]
[src]
pub trait Translate<V> { fn translate(&self, &V) -> V; fn inverse_translate(&self, &V) -> V; }
Trait of objects able to translate other objects. This is typically implemented by vectors to translate points.
Required Methods
fn translate(&self, &V) -> V
Apply a translation to an object.
fn inverse_translate(&self, &V) -> V
Apply an inverse translation to an object.
Implementors
impl<N: Copy + Add<N, Output=N> + Sub<N, Output=N>> Translate<Point1<N>> for Vector1<N>
impl<N: Copy + Add<N, Output=N> + Sub<N, Output=N>> Translate<Point2<N>> for Vector2<N>
impl<N: Copy + Add<N, Output=N> + Sub<N, Output=N>> Translate<Point3<N>> for Vector3<N>
impl<N: Copy + Add<N, Output=N> + Sub<N, Output=N>> Translate<Point4<N>> for Vector4<N>
impl<N: Copy + Add<N, Output=N> + Sub<N, Output=N>> Translate<Point5<N>> for Vector5<N>
impl<N: Copy + Add<N, Output=N> + Sub<N, Output=N>> Translate<Point6<N>> for Vector6<N>
impl<N: Copy + Add<N, Output=N> + Sub<N, Output=N>> Translate<Point2<N>> for Isometry2<N>
impl<N: Copy + Add<N, Output=N> + Sub<N, Output=N>> Translate<Point3<N>> for Isometry3<N>
impl<V: Clone> Translate<V> for Identity