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
l1 ([point, point] |
compas.geometry.Line
) – A line defined by two points, with at least XY coordinates.l2 ([point, point] |
compas.geometry.Line
) – A line defined by two points, with at least XY coordinates.tol (float, optional) – A tolerance for membership verification.
- Returns
[float, float, 0.0] | None – XYZ coordinates of intersection point if one exists, with Z = 0. Otherwise, None.