Function vec3::cross_mut [−][src]
pub fn cross_mut<'out, T>(a: &'out mut [T; 3], b: &[T; 3]) -> &'out mut [T; 3] where
T: Clone + Sub<T, Output = T>,
&'a T: Mul<&'b T, Output = T>,
Example
let mut v = [1, 0, 0]; vec3::cross_mut(&mut v, &[0, 1, 0]); assert_eq!(v, [0, 0, 1]);