is_intersection_line_line_xy

compas.geometry.is_intersection_line_line_xy(l1, l2, tol=1e-06)[source]

Verifies if two lines intersect on the XY-plane.

Parameters
  • l1 ([point, point] | Line) – XY(Z) coordinates of two points defining a line.

  • l2 ([point, point] | Line) – XY(Z) coordinates of two points defining a line.

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

Returns

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