[src]

Function nalgebra::na::translation

pub fn translation<V, M: Translation<V>>(m: &M) -> V

Gets the translation applicable by m.

extern mod nalgebra;
use nalgebra::na::{Vec3, Iso3};
use nalgebra::na;

fn main() {
    let t     = Iso3::new(Vec3::new(1.0, 1.0, 1.0), na::zero());
    let trans = na::translation(&t);

    assert!(trans == Vec3::new(1.0, 1.0, 1.0));
}