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::{Vec3, Rot3}; fn main() { let t = Rot3::new(Vec3::new(1.0f64, 1.0, 1.0)); assert!(na::approx_eq(&na::rotation(&t), &Vec3::new(1.0, 1.0, 1.0))); }