From c37194daf6d237ae1b0149b5cb733a436a7e17ba Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 31 Oct 2023 20:05:31 -0700 Subject: [PATCH] AddAssign for Planar64 --- src/integer.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/integer.rs b/src/integer.rs index c3cd434..053ef0d 100644 --- a/src/integer.rs +++ b/src/integer.rs @@ -519,6 +519,12 @@ impl std::ops::Add for Planar64{ Planar64(self.0+rhs.0) } } +impl std::ops::AddAssign for Planar64{ + #[inline] + fn add_assign(&mut self,rhs:Self){ + *self=*self+rhs; + } +} impl std::ops::Sub for Planar64{ type Output=Planar64; #[inline]