Function nalgebra::inv_translation [] [src]

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

Gets the inverse translation applicable by m.

extern crate nalgebra as na;
use na::{Vec3, Iso3};

fn main() {
    let t      = Iso3::new(Vec3::new(1.0f64, 1.0, 1.0), na::zero());
    let itrans = na::inv_translation(&t);

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