glm-rs icon indicating copy to clipboard operation
glm-rs copied to clipboard

No implementation for AddAssign(+=), SubAssign(-=), and MulAssign(*=) operators

Open stalker57241 opened this issue 2 years ago • 1 comments

It isn't requires much code, just for vectors

impl<T: SignedNum + BaseNum> AddAssign for $t<T> {
  fn add_assign(&mut self, rhs: Self) {
    self = self + rhs;
  }
}

stalker57241 avatar Sep 21 '23 12:09 stalker57241

I was just looking for DivAssign v /= v2.

rnikander avatar Dec 28 '24 01:12 rnikander