Function vec3::transform_quat [−][src]
pub fn transform_quat<'out, T>(
out: &'out mut [T; 3],
v: &[T; 3],
q: &[T; 4]
) -> &'out mut [T; 3] where
T: Add<T, Output = T> + Sub<T, Output = T>,
&'a T: Neg<Output = T> + Mul<&'b T, Output = T>,
Example
let mut v = vec3::new_zero(); vec3::transform_quat(&mut v, &vec3::new_one(), &[0_f32, 0_f32, 0_f32, 1_f32]); assert_eq!(v, vec3::new_one());