AddAssign for Planar64

This commit is contained in:
Quaternions 2023-10-31 20:05:31 -07:00
parent 5317a0fafe
commit c37194daf6

View File

@ -519,6 +519,12 @@ impl std::ops::Add<Planar64> for Planar64{
Planar64(self.0+rhs.0) Planar64(self.0+rhs.0)
} }
} }
impl std::ops::AddAssign<Planar64> for Planar64{
#[inline]
fn add_assign(&mut self,rhs:Self){
*self=*self+rhs;
}
}
impl std::ops::Sub<Planar64> for Planar64{ impl std::ops::Sub<Planar64> for Planar64{
type Output=Planar64; type Output=Planar64;
#[inline] #[inline]