Function vec2::position_mat4 [−][src]
pub fn position_mat4<'out, T>(
out: &'out mut [T; 2],
m: &[T; 16]
) -> &'out mut [T; 2] where
T: Clone,
Example
let mut v = vec2::new_zero(); vec2::position_mat4(&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, 1_f32, 1_f32, 1_f32, 1_f32] ); assert_eq!(v, vec2::new_one());