Function mat32::decompose [−][src]
pub fn decompose<T>(
out: &[T; 6],
position: &mut [T; 2],
scale: &mut [T; 2],
rotation: &mut T
) where
T: Clone + Float,
&'a T: Mul<&'b T, Output = T> + Neg<Output = T>,
Example
let m = mat32::new_identity(); let mut position = [0f32, 0f32]; let mut scale = [1f32, 1f32]; let mut rotation = 0f32; mat32::decompose(&m, &mut position, &mut scale, &mut rotation); assert_eq!(position, [0f32, 0f32]); assert_eq!(scale, [1f32, 1f32]); assert_eq!(rotation, 0f32);