Saturday, November 16, 2024
Google search engine
HomeLanguagesPython | Sympy Plane.is_coplanar() method

Python | Sympy Plane.is_coplanar() method

In Simpy, the function Plane.is_coplanar() is used to check whether the given planes are coplanar or not.

Syntax: Plane.is_coplanar(p)

Parameter:
 p: a Plane

Returns:
 True: if planes are coplanar, else False

Example #1:




# import sympy, Point3D and Plane
from sympy import Point3D, Plane
   
o = (0, 0, 0)
  
# using Plane() 
p1 = Plane(o, (1, 1, 1))
p2 = Plane(o, (2, 2, 2))
  
# using is_coplanar()
isCoplanar = p1.is_coplanar(p2)
  
print(isCoplanar)


Output:

True

Example #2:




# import sympy, Point3D and Plane
from sympy import Point3D, Plane
   
o = (0, 0, 0)
  
# using Plane() 
p3 = Plane(o, (1, 1, 1))
p4 = Plane(o, (3, 2, 1))
  
# using is_coplanar()
isCoplanar = p3.is_coplanar(p4)
  
print(isCoplanar)


Output:

False

Dominic Rubhabha-Wardslaus
Dominic Rubhabha-Wardslaushttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Recent Comments