intersection_segment_segment_xy

compas.geometry.intersection_segment_segment_xy(ab, cd, tol=1e-06)[source]

Compute the intersection of two lines segments, assuming they lie in the XY plane.

Parameters
  • ab (tuple) – XY(Z) coordinates of two points defining a line segment.

  • cd (tuple) – XY(Z) coordinates of two points defining another line segment.

  • tol (float, optional) – A tolerance for membership verification. Default is 0.0.

Returns

  • None – If there is no intersection point.

  • list – XYZ coordinates of intersection point if one exists.