Skip to content
Snippets Groups Projects
Commit 1e9bd15b authored by Pierre EVEN's avatar Pierre EVEN
Browse files

added missing != operator for vector2 (required by gcc on turring)

parent b8eedf11
Branches
No related merge requests found
......@@ -57,6 +57,7 @@ public:
Vector2& operator%=(const T& other) { pos_x %= other; pos_y %= other; return *this; }
bool operator==(const Vector2& other) const { return pos_x == other.pos_x && pos_y == other.pos_y; }
bool operator!=(const Vector2& other) const { return pos_x != other.pos_x || pos_y != other.pos_y; }
// Utilities
[[nodiscard]] T length() const { return static_cast<T>(std::sqrt(static_cast<double>(pos_x * pos_x + pos_y * pos_y))); }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment