Skip to content

Commit

Permalink
https://github.com/zturtleman/mm3d/issues/179
Browse files Browse the repository at this point in the history
  • Loading branch information
m-7761 committed Mar 18, 2022
1 parent c32ec50 commit 46db042
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/libmm3d/glmath.cc
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ const double &Vector::operator[](int index)const
return m_val[index];
}

Vector Vector::operator+=(const Vector &rhs)
Vector &Vector::operator+=(const Vector &rhs)
{
this->m_val[0] += rhs.m_val[0];
this->m_val[1] += rhs.m_val[1];
Expand All @@ -941,7 +941,7 @@ Vector Vector::operator+=(const Vector &rhs)
return *this;
}

Vector Vector::operator-=(const Vector &rhs)
Vector &Vector::operator-=(const Vector &rhs)
{
this->m_val[0] -= rhs.m_val[0];
this->m_val[1] -= rhs.m_val[1];
Expand Down
4 changes: 2 additions & 2 deletions src/libmm3d/glmath.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ class Vector

double &operator[](int index);
const double &operator[](int index)const;
Vector operator+=(const Vector &rhs);
Vector operator-=(const Vector &rhs);
Vector &operator+=(const Vector &rhs);
Vector &operator-=(const Vector &rhs);
bool operator==(const Vector &rhs)const;

friend Vector operator*(const Vector &lhs, const Matrix &rhs);
Expand Down

0 comments on commit 46db042

Please sign in to comment.