Python Sympy Plane.are_concurrent()方法
在Simpy中,函数Plane.are_concurrent()用于检查给定的平面序列是否是并发的。如果两个或多个平面的交叉点是一条共同的线,那么它们就是并存的。
语法: Plane.are_concurrent()
参数 :
planes: sequence of planes
返回:
True:如果他们是同时进行的,否则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