mirror of https://github.com/AxioDL/zeus.git
CVector2i: Implement operator!= in terms of operator==
Same behavior, but without duplicated inverted logic.
This commit is contained in:
parent
5f892dda81
commit
3083285c79
|
@ -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 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); }
|
CVector2i operator*(int32_t val) const { return CVector2i(x * val, y * val); }
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue