is_colinear

compas.geometry.is_colinear(a, b, c, tol=None)[source]

Determine if three points are colinear.

Parameters:
a[float, float, float] | compas.geometry.Point

Point 1.

b[float, float, float] | compas.geometry.Point

Point 2.

c[float, float, float] | compas.geometry.Point

Point 3.

tolfloat, optional

Tolerance for comparing the area of the triangle formed by the three points to zero. Default is TOL.absolute.

Returns:
bool

True if the points are colinear. False otherwise.