mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
Operator< for Point
This commit is contained in:
@@ -39,6 +39,7 @@ class Point
|
|||||||
};
|
};
|
||||||
bool operator==(const Point& rhs) const { return this->x == rhs.x && this->y == rhs.y; }
|
bool operator==(const Point& rhs) const { return this->x == rhs.x && this->y == rhs.y; }
|
||||||
bool operator!=(const Point& rhs) const { return ! (*this == rhs); }
|
bool operator!=(const Point& rhs) const { return ! (*this == rhs); }
|
||||||
|
bool operator<(const Point& rhs) const { return this->x < rhs.x || (this->x == rhs.x && this->y < rhs.y); }
|
||||||
std::string wkt() const;
|
std::string wkt() const;
|
||||||
std::string dump_perl() const;
|
std::string dump_perl() const;
|
||||||
void scale(double factor);
|
void scale(double factor);
|
||||||
|
|||||||
Reference in New Issue
Block a user