is_point_on_segment
-
compas.geometry.is_point_on_segment(point, segment, tol=1e-06)[source] Determine if a point lies on a given line segment.
- Parameters
point ([x, y, z] or
compas.geometry.Point) – A point.segment ([point, point] or
compas.geometry.Line) – A line segment.tol (float, optional) – A tolerance for membership verification. Default is
1e-6.
- Returns
bool –
Trueif the point is on the line segment.Falseotherwise.