New +Line::intersection_infinite() method

This commit is contained in:
Alessandro Ranellucci 2015-01-16 16:25:39 +01:00
parent aa69ae11a8
commit e749f6040f
4 changed files with 33 additions and 1 deletions

View file

@ -30,6 +30,13 @@
%code{% RETVAL = THIS->parallel_to(*line); %};
Point* midpoint();
Clone<Point> point_at(double distance);
Clone<Point> intersection_infinite(Line* other)
%code{%
Point p;
bool res = THIS->intersection_infinite(*other, &p);
if (!res) CONFESS("Intersection failed");
RETVAL = p;
%};
Polyline* as_polyline()
%code{% RETVAL = new Polyline(*THIS); %};
Clone<Point> normal();