1 2 3 4 5 6 7 8 9 10 11 12
use std::ops::Neg; use crate::vector::vec4::Vec4; impl Neg for Vec4 { type Output = Vec4; fn neg(self) -> Self::Output { let matrix = unsafe { -self.data.matrix }; Vec4::from(matrix) } }