Ported Point->distance_to() and Line->length()
This commit is contained in:
parent
c9f68ed28a
commit
e19c6a1494
7 changed files with 18 additions and 6 deletions
|
@ -20,6 +20,7 @@
|
|||
void reverse();
|
||||
void scale(double factor);
|
||||
void translate(double x, double y);
|
||||
double length();
|
||||
%{
|
||||
|
||||
Line*
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
int nearest_point_index(Points points);
|
||||
Point* nearest_point(Points points)
|
||||
%code{% const char* CLASS = "Slic3r::Point"; RETVAL = new Point(*(THIS->nearest_point(points))); %};
|
||||
double distance_to(Point* point);
|
||||
|
||||
%{
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue