Function vec2::scale_mat2 [−][src]
pub fn scale_mat2<'out, T>(
out: &'out mut [T; 2],
m: &[T; 4]
) -> &'out mut [T; 2] where
T: Real,
&'a T: Mul<&'b T, Output = T>,
Example
let mut v = vec2::new_zero(); vec2::scale_mat2(&mut v, &[1_f32, 0_f32, 0_f32, 1_f32]); assert_eq!(v, vec2::new_one());