Open In App

Python | Sympy Plane.parallel_plane() method

Last Updated : 21 Jul, 2021
Improve
Improve
Like Article
Like
Save
Share
Report

In Sympy, the function Plane.parallel_plane() is used to return plane parallel to the given plane and passing through the given point.
 

Syntax: Plane.parallel_plane(pt)

Parameters:
 pt: Point3D

Returns: Plane

Example #1: 
 

Python3




# import sympy, Point3D and Plane
from sympy import Point3D, Plane
 
# using Plane()
p1 = Plane(Point3D(1, 2, 3), normal_vector =(4, 5, 6))
 
# using parallel_plane()
parallelPlane = p1.parallel_plane(Point3D(2, 3, 5))
 
print(parallelPlane)


Output:  

Plane(Point3D(2, 3, 5), (4, 5, 6))

Example #2: 
 

Python3




# import sympy, Point3D and Plane
from sympy import Point3D, Plane
 
# using Plane()
p2 = Plane(Point3D(1, 1, 2), Point3D(2, 4, 7), Point3D(3, 5, 1))
 
# using parallel_plane()
parallelPlane = p2.parallel_plane(Point3D(1, 2, 3))
 
print(parallelPlane)


Output:  

Plane(Point3D(1, 2, 3), (-23, 11, -2))

 


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads