is_point_on_polyline_xy

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

Determine if a point is on a polyline on the XY-plane.

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

  • polyline (sequence[point] | Polyline) – XY(Z) coordinates of the points of the polyline.

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

Returns

bool – True if the point is on the polyline. False otherwise.