Ported chained_path() to XS

This commit is contained in:
Alessandro Ranellucci
2013-11-23 21:39:05 +01:00
parent 4d5d003ba7
commit 0516aac715
9 changed files with 74 additions and 31 deletions

View File

@@ -10,6 +10,7 @@ namespace Slic3r {
class Line;
class Point;
typedef std::vector<Point> Points;
typedef std::vector<Point*> PointPtrs;
class Point
{
@@ -22,7 +23,8 @@ class Point
void rotate(double angle, Point* center);
bool coincides_with(const Point &point) const;
bool coincides_with(const Point* point) const;
int nearest_point_index(const Points points) const;
int nearest_point_index(Points &points) const;
int nearest_point_index(PointPtrs &points) const;
Point* nearest_point(Points points) const;
double distance_to(const Point* point) const;
double distance_to(const Line* line) const;