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