New Point::projection_onto() methods

This commit is contained in:
Alessandro Ranellucci 2014-05-21 20:08:21 +02:00
parent 874c7a6e8b
commit 254ab29a97
4 changed files with 83 additions and 1 deletions

View file

@ -29,6 +29,12 @@
%code{% RETVAL = THIS->distance_to(*line); %};
double ccw(Point* p1, Point* p2)
%code{% RETVAL = THIS->ccw(*p1, *p2); %};
Clone<Point> projection_onto_polygon(Polygon* polygon)
%code{% RETVAL = new Point(THIS->projection_onto(*polygon)); %};
Clone<Point> projection_onto_polyline(Polyline* polyline)
%code{% RETVAL = new Point(THIS->projection_onto(*polyline)); %};
Clone<Point> projection_onto_line(Line* line)
%code{% RETVAL = new Point(THIS->projection_onto(*line)); %};
%{