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] | Line) – A line segment.

  • s2 ([point, point] | Line) – A line segment.

  • tol (float, optional) – A tolerance for intersection verification.

Returns

bool – True if the segments intersect in one point. False if the segments are skew, parallel or lie on top of each other.