Add less than operator for Point2

This commit is contained in:
2025-04-30 19:27:28 +02:00
parent e0cd315909
commit a819caba8b
2 changed files with 6 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ class Point2
Point2(const int x, const int y);
bool operator==(const Point2& rhs) const;
bool operator!=(const Point2& rhs) const;
bool operator<(const Point2& rhs) const;
Point2 operator+(const Point2& rhs) const;
Point2 operator-(const Point2& rhs) const;
Point2 operator*(const int rhs) const;