is_point_on_line_xy

compas.geometry.is_point_on_line_xy(point, line, tol=1e-06)[source]

Determine if a point lies on a line on the XY-plane.

Parameters
  • point ([float, float, float] | compas.geometry.Point) – XY(Z) coordinates of a point.

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

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

Returns

bool – True if the point is in on the line. False otherwise.