Open In App

Python | Sympy Plane.is_coplanar() method

Improve
Improve
Like Article
Like
Save
Share
Report
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

Last Updated : 23 Mar, 2020
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads