Trait nalgebra::Translation
[−]
[src]
pub trait Translation<V> { fn translation(&self) -> V; fn inv_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 inv_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<Vec1<N>> for Vec1<N>
impl<N: Copy + Add<N, Output=N> + Neg<Output=N>> Translation<Vec2<N>> for Vec2<N>
impl<N: Copy + Add<N, Output=N> + Neg<Output=N>> Translation<Vec3<N>> for Vec3<N>
impl<N: Copy + Add<N, Output=N> + Neg<Output=N>> Translation<Vec4<N>> for Vec4<N>
impl<N: Copy + Add<N, Output=N> + Neg<Output=N>> Translation<Vec5<N>> for Vec5<N>
impl<N: Copy + Add<N, Output=N> + Neg<Output=N>> Translation<Vec6<N>> for Vec6<N>
impl<N: BaseFloat> Translation<Vec2<N>> for Iso2<N>
impl<N: BaseFloat> Translation<Vec3<N>> for Iso3<N>
impl<N: BaseFloat> Translation<Vec4<N>> for Iso4<N>