is_colinear

compas.geometry.is_colinear(a, b, c, tol=1e-06)[source]

Determine if three points are colinear.

Parameters
  • a ([float, float, float] | Point) – Point 1.

  • b ([float, float, float] | Point) – Point 2.

  • c ([float, float, float] | Point) – Point 3.

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

Returns

bool – True if the points are colinear. False otherwise.