Add equality tests to CVector2i

This commit is contained in:
Jack Andersen 2017-05-18 09:26:44 -10:00
parent 21b0eb15c8
commit a0ca6ed66c
1 changed files with 8 additions and 0 deletions

View File

@ -40,6 +40,14 @@ public:
{ {
return CVector2i(x / val.x, y / val.y); return CVector2i(x / val.x, y / val.y);
} }
inline bool operator==(const CVector2i& other) const
{
return x == other.x && y == other.y;
}
inline bool operator!=(const CVector2i& other) const
{
return x != other.x || y != other.y;
}
}; };
} }