CVector2i: Implement operator!= in terms of operator==

Same behavior, but without duplicated inverted logic.
This commit is contained in:
Lioncash 2019-09-04 02:42:55 -04:00
parent 5f892dda81
commit 3083285c79
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ public:
bool operator==(const CVector2i& other) const { return x == other.x && y == other.y; }
bool operator!=(const CVector2i& other) const { return x != other.x || y != other.y; }
bool operator!=(const CVector2i& other) const { return !operator==(other); }
CVector2i operator*(int32_t val) const { return CVector2i(x * val, y * val); }
};