Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当绘制如下时,如何在枫树中找到两条线的交点:
a:=line([1,-1,-1],[0,0,1]): b:=line([1,1,1],[0,-1,0]):
我试图使用交集命令,但它返回了这个:
intersection(CURVES([[1., -1., -1.], [0., 0., 1.]]), CURVES([[1., 1., 1.], [0., -1., 0.]]))
非常感谢您的帮助
line 的第一个参数是符号定义的行的名称。
而不是使用
请尝试以下操作:
with(geom3d): point(p1,[1,-1,-1]): point(p2,[0,0,1]): point(p3,[1,1,1]): point(p4,[0,-1,0]): line(l1,[p1, p2]): line(l2,[p3, p4]): intersection(P,l1,l2): coordinates(P)
有关更多详细信息,请参阅关于交叉点和线的帮助。