3D线面相交,与简单的平面 [英] 3D line plane intersection, with simple plane

查看:233
本文介绍了3D线面相交,与简单的平面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在3D空间中的两个点具有x坐标不同的正负号。所以其中的一个位于绝对在X平面的一侧,并一个在另一个

i have two points in 3D space which have X-coordinates with different signum. so one of them lies definitely on one side of the X-plane and one on the other.

现在我想找到这架飞机的交叉点,并以最简单和最优化的方式取得了由两个点就行了。

now i want to find the intersection of this plane and the line made up by the two points in the most simple and optimized way.

我知道该怎么做的总路线平面相交,但由于在这种情况下,飞机仅仅是X平面的,我觉得应该有一些捷径,我可以走。

i know how to do general line plane intersection, but since in this case the plane is just the x-plane, i think there should be some shortcuts i can take.

谢谢!

推荐答案

连接两个点,并使用的两点表单(三维概括很简单)。

Connect the two points and get the equation of line using two-point form (the 3D generalization is simple).

然后解方程为x = 0。

Then solve the equation for x = 0.

在你已经得到了解决,翻译成你的编程语言。

After you've got the solutions, translate them into your programming language.

这篇关于3D线面相交,与简单的平面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆