mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-05 08:41:06 -07:00
Operator< for Point
This commit is contained in:
parent
329f0b9cf4
commit
47543cf82a
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue