将表面法线向量投影到 xy 平面上
我有一个平面,其方程为 ax+by-z+d=0。因此,它的法向量 (a,b-1)。现在,我需要将向量投影到 xy 平面,以便从北轴计算它的方向(我猜这里是 Y 轴。请帮助我获取投影向量。谢谢。
i have a plane whose equation is ax+by-z+d=0. hence, its normal vector (a,b-1). Now, i need to project my vector to xy plane in order to compute direction of it from the North axis (i guess it is Y axis in here. please help me to get projected vector. thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您正在寻找的是点积。这样找到飞机面向的方向就很容易了。
如果它等于
1
,则您的平面与您正在测试的平面面向相同的方向。如果它等于-1
,则它面向飞机。等于0
表示该平面与测试平面正交。希望这有帮助。I think what you're looking for is the dot product. Finding the direction the plane is facing is pretty easy that way.
If it equals to
1
, your plane faces the same direction as the plane you're testing against. If it equals to-1
, it's facing the the plane. Equalling to0
would mean the plane stands orthogonal to the tested plane. Hope this helps.