is_colinear_line_line

compas.geometry.is_colinear_line_line(line1, line2, tol=None)[source]

Determine if two lines are colinear.

Parameters:
line1[point, point] | compas.geometry.Line

Line 1.

line2[point, point] | compas.geometry.Line

Line 2.

tolfloat, optional

Tolerance for colinearity verification. Default is TOL.absolute.

Returns:
bool

True if the lines are colinear. False otherwise.