Function nalgebra::inv_rotate
[−]
[src]
pub fn inv_rotate<V, M: Rotate<V>>(m: &M, v: &V) -> V
Applies an inverse rotation to a vector.
extern crate nalgebra as na; use na::{BaseFloat, Rot3, Vec3}; fn main() { let t = Rot3::new(Vec3::new(0.0f64, 0.0, 0.5 * <f64 as BaseFloat>::pi())); let v = Vec3::new(1.0, 0.0, 0.0); let tv = na::inv_rotate(&t, &v); assert!(na::approx_eq(&tv, &Vec3::new(0.0, -1.0, 0.0))) }