is_parallel#

static GeometryOperators.is_parallel(a1, a2, b1, b2, tol=1e-06)#

Check if a segment defined by two points is parallel to a segment defined by two other points.

Parameters:
a1List

List of [x, y, z] coordinates for the first point of the fiirst segment.

a2List

List of [x, y, z] coordinates for the second point of the first segment.

b1List

List of [x, y, z] coordinates for the first point of the second segment.

b2List

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

tolfloat

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

Returns:
bool

True when successful, False when failed.