在Simpy中,該函數
Plane.is_coplanar()
用於檢查給定平麵是否共麵。用法: Plane.is_coplanar(p) 參數: p: a Plane 返回: True: if planes are coplanar, else False
範例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)
輸出:
True
範例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)
輸出:
False
相關用法
- Python sympy.S()用法及代碼示例
- Python sympy.gcd()用法及代碼示例
- Python sympy.csc()用法及代碼示例
- Python sympy.nT()用法及代碼示例
- Python sympy.Pow()用法及代碼示例
- Python sympy.ff()用法及代碼示例
- Python sympy.apart()用法及代碼示例
- Python sympy.lcm()用法及代碼示例
- Python sympy.det()用法及代碼示例
- Python sympy.div()用法及代碼示例
- Python sympy.cot()用法及代碼示例
- Python sympy.sec()用法及代碼示例
- Python sympy.gcd()用法及代碼示例
- Python sympy.Mul()用法及代碼示例
- Python sympy.cos()用法及代碼示例
注:本文由純淨天空篩選整理自ravikishor大神的英文原創作品 Python | Sympy Plane.is_coplanar() method。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。