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::{Vector3, Isometry3}; fn main() { let t = Isometry3::new(Vector3::new(1.0f64, 1.0, 1.0), na::zero()); let trans = na::translation(&t); assert!(trans == Vector3::new(1.0, 1.0, 1.0)); }Run