Function nalgebra::inverse_translate
[−]
[src]
pub fn inverse_translate<P, M: Translate<P>>(m: &M, p: &P) -> P
Applies an inverse translation to a point.
extern crate nalgebra as na; use na::{Point3, Vector3, Isometry3}; fn main() { let t = Isometry3::new(Vector3::new(1.0f64, 1.0, 1.0), na::zero()); let p = Point3::new(2.0, 2.0, 2.0); let tp = na::inverse_translate(&t, &p); assert!(na::approx_eq(&tp, &Point3::new(1.0, 1.0, 1.0))) }Run