Function vec3::transform_mat4_rotation [−][src]
pub fn transform_mat4_rotation<'out, T>(
out: &'out mut [T; 3],
v: &[T; 3],
m: &[T; 16]
) -> &'out mut [T; 3] where
T: Clone + Add<T, Output = T>,
&'a T: Mul<&'b T, Output = T>,
Example
let mut v = vec3::new_zero(); vec3::transform_mat4_rotation(&mut v, &vec3::new_one(), &[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, vec3::new_one());