Python | Sympy Plane.parallel_plane() method
Last Updated :
21 Jul, 2021
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
from sympy import Point3D, Plane
p1 = Plane(Point3D( 1 , 2 , 3 ), normal_vector = ( 4 , 5 , 6 ))
parallelPlane = p1.parallel_plane(Point3D( 2 , 3 , 5 ))
print (parallelPlane)
|
Output:
Plane(Point3D(2, 3, 5), (4, 5, 6))
Example #2:
Python3
from sympy import Point3D, Plane
p2 = Plane(Point3D( 1 , 1 , 2 ), Point3D( 2 , 4 , 7 ), Point3D( 3 , 5 , 1 ))
parallelPlane = p2.parallel_plane(Point3D( 1 , 2 , 3 ))
print (parallelPlane)
|
Output:
Plane(Point3D(1, 2, 3), (-23, 11, -2))
Share your thoughts in the comments
Please Login to comment...