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