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

Gets the translation associated with this object.

Gets the inverse translation associated with this object.

Appends a translation to this object.

Appends the translation amount to a copy of t.

Prepends a translation to this object.

Prepends the translation amount to a copy of t.

Sets the translation.

Implementors