Python| Sympy Plane.are_concurrent() 方法
在 Simpy 中,函数
Plane.are_concurrent()
用于检查给定的平面序列是否并发。如果两个或多个平面的交点是一条公共线,则它们是并发的。 Syntax: Plane.are_concurrent()
Parameters:
planes: sequence of planes
Returns:
True: if they are concurrent, else False
示例 #1:
# import sympy, Point3D and Plane
from sympy import Point3D, Plane
# using Plane()
p1 = Plane(Point3D(5, 0, 0), normal_vector =(1, -1, 1))
p2 = Plane(Point3D(0, -2, 0), normal_vector =(3, 1, 1))
# using are_concurrent()
areConcurrent = Plane.are_concurrent(p1, p2)
print(areConcurrent)
输出:
True
示例 #2:
# import sympy, Point3D and Plane
from sympy import Point3D, Plane
# using Plane()
p1 = Plane(Point3D(5, 0, 0), normal_vector =(1, -1, 1))
p2 = Plane(Point3D(0, -2, 0), normal_vector =(3, 1, 1))
p3 = Plane(Point3D(0, -1, 0), normal_vector =(5, -1, 9))
# using are_concurrent()
areConcurrent = Plane.are_concurrent(p1, p2, p3)
print(areConcurrent)
输出:
False