8
%name{Slic3r::Point} class Point {
9
Point(long _x = 0, long _y = 0);
12
%code{% RETVAL=THIS; %};
13
void scale(double factor);
14
void translate(double x, double y);
16
%code{% RETVAL = THIS->to_SV_pureperl(); %};
18
%code{% RETVAL = THIS->to_SV_pureperl(); %};
20
%code{% RETVAL = THIS->x; %};
22
%code{% RETVAL = THIS->y; %};
23
int nearest_point_index(Points points);
24
Point* nearest_point(Points points)
25
%code{% RETVAL = new Point(); THIS->nearest_point(points, RETVAL); %};
26
double distance_to(Point* point)
27
%code{% RETVAL = THIS->distance_to(*point); %};
28
double distance_to_line(Line* line)
29
%code{% RETVAL = THIS->distance_to(*line); %};
30
double ccw(Point* p1, Point* p2)
31
%code{% RETVAL = THIS->ccw(*p1, *p2); %};
32
Clone<Point> projection_onto_polygon(Polygon* polygon)
33
%code{% RETVAL = new Point(THIS->projection_onto(*polygon)); %};
34
Clone<Point> projection_onto_polyline(Polyline* polyline)
35
%code{% RETVAL = new Point(THIS->projection_onto(*polyline)); %};
36
Clone<Point> projection_onto_line(Line* line)
37
%code{% RETVAL = new Point(THIS->projection_onto(*line)); %};
38
Clone<Point> negative()
39
%code{% RETVAL = new Point(THIS->negative()); %};
44
Point::rotate(angle, center_sv)
49
center.from_SV_check(center_sv);
50
THIS->rotate(angle, center);
53
Point::coincides_with(point_sv)
57
point.from_SV_check(point_sv);
58
RETVAL = THIS->coincides_with(point);
66
%name{Slic3r::Pointf} class Pointf {
67
Pointf(double _x = 0, double _y = 0);
70
%code{% RETVAL = THIS; %};
72
%code{% RETVAL = THIS->x; %};
74
%code{% RETVAL = THIS->y; %};
75
void translate(double x, double y);
78
%name{Slic3r::Pointf3} class Pointf3 {
79
Pointf3(double _x = 0, double _y = 0, double _z = 0);
81
Clone<Pointf3> clone()
82
%code{% RETVAL = THIS; %};
84
%code{% RETVAL = THIS->x; %};
86
%code{% RETVAL = THIS->y; %};
88
%code{% RETVAL = THIS->z; %};