Function nalgebra::translation
[−]
[src]
pub fn translation<V, M: Translation<V>>(m: &M) -> V
Gets the 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 trans = na::translation(&t); assert!(trans == Vec3::new(1.0, 1.0, 1.0)); }