is_parallel#
- static GeometryOperators.is_parallel(a1, a2, b1, b2, tol=1e-06)[source]#
Check if a segment defined by two points is parallel to a segment defined by two other points.
- Parameters:
- a1
List
List of
[x, y, z]
coordinates for the first point of the fiirst segment.- a2
List
List of
[x, y, z]
coordinates for the second point of the first segment.- b1
List
List of
[x, y, z]
coordinates for the first point of the second segment.- b2
List
List of
[x, y, z]
coordinates for the second point of the second segment.- tol
float
Linear tolerance. The default value is
1e-6
.
- a1
- Returns:
- bool
True
when successful,False
when failed.