is_point_on_polyline
-
compas.geometry.is_point_on_polyline(point, polyline, tol=1e-06)[source] Determine if a point is on a polyline.
- Parameters
point ([x, y, z] or
compas.geometry.Point) – A point.polyline (list of points or
compas.geometry.Polyline) – A polyline.tol (float, optional) – The tolerance for membership verification. Default is
1e-6.
- Returns
bool –
Trueif the point is on the polyline.Falseotherwise.