is_point_on_segment_xy
- compas.geometry.is_point_on_segment_xy(point, segment, tol=None)[source]
Determine if a point lies on a given line segment on the XY-plane.
- Parameters:
- point[float, float, float] |
compas.geometry.Point
XY(Z) coordinates of a point.
- segment[point, point] |
compas.geometry.Line
XY(Z) coordinates of two points defining a segment.
- tolfloat, optional
The tolerance for comparing the distance between point and segment to zero. Default is
TOL.absolute
.
- point[float, float, float] |
- Returns:
- bool
True if the point is on the line segment. False otherwise.