Plane.is_perpendicular
- Plane.is_perpendicular(other, tol=None)[source]
Verify if this plane is perpendicular to another plane.
- Parameters:
- other
compas.geometry.Plane
The other plane.
- tolfloat, optional
Tolerance for the dot product of the normals. Default is
TOL.absolute
.
- other
- Returns:
- bool
True
if the planes are perpendicular.False
otherwise.
Examples
>>> plane1 = Plane.worldXY() >>> plane2 = Plane([1.0, 1.0, 1.0], [0.0, 0.0, 1.0]) >>> plane1.is_perpendicular(plane2) False