在Sympy中,該函數
Plane.parallel_plane()
用於返回平行於給定平麵並經過給定點的平麵。用法: Plane.parallel_plane(pt) 參數: pt: Point3D 返回: Plane
範例1:
# 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)
輸出:
Plane(Point3D(2, 3, 5), (4, 5, 6))
範例2:
# 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)
輸出:
Plane(Point3D(1, 2, 3), (-23, 11, -2))
相關用法
- Python sympy.csc()用法及代碼示例
- Python sympy.S()用法及代碼示例
- Python sympy.gcd()用法及代碼示例
- Python sympy.eye()用法及代碼示例
- Python sympy.tan()用法及代碼示例
- Python sympy.Pow()用法及代碼示例
- Python sympy.Mod()用法及代碼示例
- Python sympy.sin()用法及代碼示例
- Python sympy.cos()用法及代碼示例
- Python sympy.det()用法及代碼示例
- Python sympy.nT()用法及代碼示例
- Python sympy.gcd()用法及代碼示例
- Python sympy.sec()用法及代碼示例
- Python sympy.lcm()用法及代碼示例
- Python sympy.Mul()用法及代碼示例
注:本文由純淨天空篩選整理自ravikishor大神的英文原創作品 Python | Sympy Plane.parallel_plane() method。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。