intersection_line_line_xy
- compas.geometry.intersection_line_line_xy(l1, l2, tol=1e-06)[source]
Compute the intersection of two lines, assuming they lie on the XY plane.
- Parameters
ab (tuple) – XY(Z) coordinates of two points defining a line.
cd (tuple) – XY(Z) coordinates of two points defining another line.
tol (float, optional) – A tolerance for membership verification. Default is
1e-6
.
- Returns
point or None – XYZ coordinates of intersection point if one exists, with Z = 0. Otherwise, None.