mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
Move semantics on MultiPoint, Polygon, Polyline.
Append methods on Polyline. squared length function on point->DistanceTo
This commit is contained in:
parent
50cdf8e6d1
commit
0b90ebd74e
6 changed files with 69 additions and 35 deletions
|
@ -130,24 +130,6 @@ MultiPoint::remove_duplicate_points()
|
|||
return false;
|
||||
}
|
||||
|
||||
void
|
||||
MultiPoint::append(const Point &point)
|
||||
{
|
||||
this->points.push_back(point);
|
||||
}
|
||||
|
||||
void
|
||||
MultiPoint::append(const Points &points)
|
||||
{
|
||||
this->append(points.begin(), points.end());
|
||||
}
|
||||
|
||||
void
|
||||
MultiPoint::append(const Points::const_iterator &begin, const Points::const_iterator &end)
|
||||
{
|
||||
this->points.insert(this->points.end(), begin, end);
|
||||
}
|
||||
|
||||
bool
|
||||
MultiPoint::intersection(const Line& line, Point* intersection) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue