Function mat32::rotation[][src]

pub fn rotation<'out, T>(out: &[T; 6]) -> T where
    T: Clone + Float

Example

use std::f32;
let mut m = mat32::new_identity::<f32>();
mat32::set_rotation(&mut m, &f32::consts::FRAC_PI_2);
assert_eq!(mat32::rotation(&m), f32::consts::FRAC_PI_2);