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