Thursday, September 18, 2025
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
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32299 POSTS0 COMMENTS
Milvus
84 POSTS0 COMMENTS
Nango Kala
6660 POSTS0 COMMENTS
Nicole Veronica
11835 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11895 POSTS0 COMMENTS
Shaida Kate Naidoo
6779 POSTS0 COMMENTS
Ted Musemwa
7052 POSTS0 COMMENTS
Thapelo Manthata
6735 POSTS0 COMMENTS
Umr Jansen
6741 POSTS0 COMMENTS