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