Ported nearest_point() and nearest_point_index()

This commit is contained in:
Alessandro Ranellucci
2013-08-27 00:52:20 +02:00
parent f1e9216c70
commit b11b595c97
18 changed files with 79 additions and 69 deletions

View File

@@ -7,6 +7,9 @@
namespace Slic3r {
class Point;
typedef std::vector<Point> Points;
class Point
{
public:
@@ -20,10 +23,10 @@ class Point
void translate(double x, double y);
void rotate(double angle, Point* center);
bool coincides_with(const Point* point) const;
int nearest_point_index(const Points points) const;
Point* nearest_point(Points points) const;
};
typedef std::vector<Point> Points;
}
#endif