mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-22 08:11:11 -06:00
This commit is contained in:
parent
8290a006ed
commit
3d25b9030c
5 changed files with 28 additions and 4 deletions
|
|
@ -190,6 +190,12 @@ Point::projection_onto(const Line &line) const
|
|||
}
|
||||
}
|
||||
|
||||
Point
|
||||
Point::negative() const
|
||||
{
|
||||
return Point(-this->x, -this->y);
|
||||
}
|
||||
|
||||
Point
|
||||
operator+(const Point& point1, const Point& point2)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ class Point
|
|||
double ccw(const Line &line) const;
|
||||
Point projection_onto(const MultiPoint &poly) const;
|
||||
Point projection_onto(const Line &line) const;
|
||||
Point negative() const;
|
||||
|
||||
#ifdef SLIC3RXS
|
||||
void from_SV(SV* point_sv);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue