mirror of https://github.com/AxioDL/zeus.git
Add equality tests to CVector2i
This commit is contained in:
parent
21b0eb15c8
commit
a0ca6ed66c
|
@ -40,6 +40,14 @@ public:
|
|||
{
|
||||
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;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue