Function nalgebra::inverse_rotation [] [src]

pub fn inverse_rotation<V, M: Rotation<V>>(m: &M) -> V

Gets the inverse rotation applicable by m.

extern crate nalgebra as na;
use na::{Vector3, Rotation3};

fn main() {
    let t = Rotation3::new(Vector3::new(1.0f64, 1.0, 1.0));

    assert!(na::approx_eq(&na::inverse_rotation(&t), &Vector3::new(-1.0, -1.0, -1.0)));
}