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