intersection_segment_segment_xy
- compas.geometry.intersection_segment_segment_xy(ab, cd, tol=None)[source]
Compute the intersection of two lines segments, assuming they lie in the XY plane.
- Parameters:
- ab[point, point] |
compas.geometry.Line
A segment defined by two points, with at least XY coordinates.
- cd[point, point] |
compas.geometry.Line
A segment defined by two points, with at least XY coordinates.
- tolfloat, optional
A tolerance for verifying that the point lies on both segments. Default is
TOL.absolute
.
- ab[point, point] |
- Returns:
- [float, float, 0.0] | None
XYZ coordinates of intersection point if one exists. None otherwise.