is_parallel_line_line

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

Determine if two lines are parallel.

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

Line 1.

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

Line 2.

tolfloat, optional

Tolerance for comparing the length of the cross product of the direction vectors of the two lines to zero. Default is TOL.absolute.

Returns:
bool

True if the lines are colinear. False otherwise.

See also

is_parallel_vector_vector
is_parallel_plane_plane
is_perpendicular_line_line