is_intersection_segment_segment
-
compas.geometry.is_intersection_segment_segment(s1, s2, tol=1e-06)[source] Verifies if two segments intersect.
- Parameters
s1 ([point, point] or
compas.geometry.Line) – A line segment.s2 ([point, point] or
compas.geometry.Line) – A line segment.tol (float, optional) – A tolerance for intersection verification. Default is
1e-6.
- Returns
bool –
True``if the segments intersect in one point. ``Falseif the segments are skew, parallel or lie on top of each other.