is_parallel#

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

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.

Examples

>>> from ansys.aedt.core.modeler.geometry_operators import GeometryOperators
>>> obj = GeometryOperators()
>>> obj.is_parallel(a1=["Box1"], a2=["Box1"], b1=["Box1"], b2=["Box1"])