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:

filter_none

edit
close

play_arrow

link
brightness_4
code

# 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)

chevron_right


Output:

True

Example #2:

filter_none

edit
close

play_arrow

link
brightness_4
code

# 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)

chevron_right


Output:

False

Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.

To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.




My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.