Function nalgebra::inv_rotation
[−]
[src]
pub fn inv_rotation<V, M: Rotation<V>>(m: &M) -> V
Gets the inverse rotation applicable by m
.
extern crate nalgebra as na; use na::{Vec3, Rot3}; fn main() { let t = Rot3::new(Vec3::new(1.0f64, 1.0, 1.0)); assert!(na::approx_eq(&na::inv_rotation(&t), &Vec3::new(-1.0, -1.0, -1.0))); }