mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-31 05:49:12 -07:00
Ported nearest_point() and nearest_point_index()
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user