is_point_on_segment
- compas.geometry.is_point_on_segment(point, segment, tol=None)[source]
Determine if a point lies on a given line segment.
- Parameters:
- point[float, float, float] |
compas.geometry.Point
A point.
- segment[point, point] |
compas.geometry.Line
A line segment.
- tolfloat, optional
Tolerance for comparing the distance between the point and the line segment to zero. Default is
TOL.absolute
.
- point[float, float, float] |
- Returns:
- bool
True if the point is on the line segment. False otherwise.