Function nalgebra::translate
[−]
[src]
pub fn translate<P, M: Translate<P>>(m: &M, p: &P) -> P
Applies a 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::translate(&t, &p); assert!(tp == Point3::new(3.0, 3.0, 3.0)) }Run