lol idk #1

Open
Quaternions wants to merge 826 commits from StrafesNET/strafe-project:master into master
Showing only changes of commit 345d5737a2 - Show all commits

View File

@ -92,10 +92,10 @@ macro_rules! impl_vector {
}
}
impl<const N:usize,T:core::ops::Neg<Output=T>> core::ops::Neg for Vector<N,T>{
type Output=Self;
impl<const N:usize,T:core::ops::Neg<Output=V>,V> core::ops::Neg for Vector<N,T>{
type Output=Vector<N,V>;
fn neg(self)->Self::Output{
Self{
Vector{
array:self.array.map(|t|-t)
}
}