inters


(inters  point1  point2  point3  point4  [ onlyOnSegment ] )

This function returns the real or extended intersection point between 2 line (segments).

Arguments

point1  2d/3d point list; start point of first line

point2  2d/3d point list; end point of first line

point3  2d/3d point list; start point of second line

point4  2d/3d point list; end point of second line

onlyOnSegment  (optional) if non-NIL, the intersection must be on both segments, otherwise infinite lines are used for intersection point calculation; defaultNIL, infinite lines are used

Return

2d point or 3d point, NIL if no intersection exists

Example


Remarks

if any input points is in 2d, otherwise a 3d point is calculated if all input points are specified as 3D



©  Bricsys NV. All rights reserved.