Plane.is_parallel

Plane.is_parallel(other, tol=None)[source]

Verify if this plane is parallel to another plane.

Parameters:
othercompas.geometry.Plane

The other plane.

tolfloat, optional

Tolerance for the dot product of the normals. Default is TOL.absolute.

Returns:
bool

True if the planes are parallel. False otherwise.

Examples

>>> plane1 = Plane.worldXY()
>>> plane2 = Plane([1.0, 1.0, 1.0], [0.0, 0.0, 1.0])
>>> plane1.is_parallel(plane2)
True