- compas.geometry.intersection_segment_segment_xy(ab, cd, tol=1e-06)
Compute the intersection of two lines segments, assuming they lie in the XY plane.
ab (tuple) – XY(Z) coordinates of two points defining a line segment.
cd (tuple) – XY(Z) coordinates of two points defining another line segment.
tol (float, optional) – A tolerance for membership verification. Default is
None – If there is no intersection point.
list – XYZ coordinates of intersection point if one exists.