is_colinear
-
compas.geometry.is_colinear(a, b, c, tol=1e-06)[source] Determine if three points are colinear.
- Parameters
a ([x, y, z] or
compas.geometry.Point) – Point 1.b ([x, y, z] or
compas.geometry.Point) – Point 2.c ([x, y, z] or
compas.geometry.Point) – Point 3.tol (float, optional) – A tolerance for membership verification. Default is
1e-6.
- Returns
bool –
Trueif the points are colinear.Falseotherwise.