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 ([float, float, float] | Point) – A point.

  • line ([point, point] | Line) – A line.

  • tol (float, optional) – A tolerance for membership verification.

Returns

bool – True if the point is in on the line. False otherwise.