Bugfix: movement between objects in sequential printing mode was going too far away. #2013 #2007

This commit is contained in:
Alessandro Ranellucci 2014-05-26 15:19:13 +02:00
parent 8290a006ed
commit 3d25b9030c
5 changed files with 28 additions and 4 deletions

View file

@ -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)
{

View file

@ -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);