is_collinear#

static GeometryOperators.is_collinear(a, b, tol=1e-06)[source]#

Check if two vectors are collinear (parallel or anti-parallel).

Parameters:
aList

List of [x, y, z] coordinates for the first vector.

bList

List of [x, y, z] coordinates for the second vector.

tolfloat

Linear tolerance. The default value is 1e-6.

Returns:
bool

True if vectors are collinear, False otherwise.