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