Trait nalgebra::Translation
[−]
[src]
pub trait Translation<V> { fn translation(&self) -> V; fn inverse_translation(&self) -> V; fn append_translation_mut(&mut self, &V); fn append_translation(&self, amount: &V) -> Self; fn prepend_translation_mut(&mut self, &V); fn prepend_translation(&self, amount: &V) -> Self; fn set_translation(&mut self, V); }
Trait of object which represent a translation, and to wich new translation can be appended.
Required Methods
fn translation(&self) -> V
Gets the translation associated with this object.
fn inverse_translation(&self) -> V
Gets the inverse translation associated with this object.
fn append_translation_mut(&mut self, &V)
Appends a translation to this object.
fn append_translation(&self, amount: &V) -> Self
Appends the translation amount
to a copy of t
.
fn prepend_translation_mut(&mut self, &V)
Prepends a translation to this object.
fn prepend_translation(&self, amount: &V) -> Self
Prepends the translation amount
to a copy of t
.
fn set_translation(&mut self, V)
Sets the translation.
Implementors
impl<N: Copy + Add<N, Output=N> + Neg<Output=N>> Translation<Vector1<N>> for Vector1<N>
impl<N: Copy + Add<N, Output=N> + Neg<Output=N>> Translation<Vector2<N>> for Vector2<N>
impl<N: Copy + Add<N, Output=N> + Neg<Output=N>> Translation<Vector3<N>> for Vector3<N>
impl<N: Copy + Add<N, Output=N> + Neg<Output=N>> Translation<Vector4<N>> for Vector4<N>
impl<N: Copy + Add<N, Output=N> + Neg<Output=N>> Translation<Vector5<N>> for Vector5<N>
impl<N: Copy + Add<N, Output=N> + Neg<Output=N>> Translation<Vector6<N>> for Vector6<N>
impl<N: BaseFloat> Translation<Vector2<N>> for Isometry2<N>
impl<N: BaseFloat> Translation<Vector3<N>> for Isometry3<N>