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