Function nalgebra::rotation [] [src]

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

Gets the 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::rotation(&t), &Vector3::new(1.0, 1.0, 1.0)));
}