Function vec2::transform_mat4_projection_mut [−][src]
pub fn transform_mat4_projection_mut<'out, T>(
out: &'out mut [T; 2],
m: &[T; 16]
) -> &'out mut [T; 2] where
T: Clone + One + Zero + Add<T, Output = T>,
&'a T: Div<&'b T, Output = T> + Mul<&'b T, Output = T>,
Example
let mut v = vec2::new_one(); vec2::transform_mat4_projection_mut(&mut v, &[1_f32, 0_f32, 0_f32, 0_f32, 0_f32, 1_f32, 0_f32, 0_f32, 0_f32, 0_f32, 1_f32, 0_f32, 0_f32, 0_f32, 0_f32, 1_f32] ); assert_eq!(v, vec2::new_one());