楼层确定 [英] Floor Determination

查看:66
本文介绍了楼层确定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到了等式,Ax + By + Cz + D

其中:

A = vFloorClipPlane.x

B = vFloorClipPlane.y

C = vFloorClipPlane.z

D = vFloorClipPlane.w

它是否代表照片中的楼层平面?

和sum = Ax + By + Cz + D,"sum = 1.2xxxx"是什么意思?

代表 飞机与(x,y,z)之间的距离?

推荐答案

它应该是相对于相机的地板平面。 您列出的等式是原点位于相机中心时地板的平面方程。 那时,x = y = z = 0,所以你只留下D,而
代表相机离开地板的高度的负值。

It is supposed to be the plane of the floor with respect to the camera.  The equation that you listed is the plane equation of the floor when the origin is at the camera center.  At that point, x=y=z=0, so you are left with only D which should represent the negative of the height of the camera off of the floor.

如果您插入其他< x,y,z>坐标,然后你将获得从该点到地板平面的距离。 这是到飞机的最短距离,这意味着垂直于平面的向量是指向您的点,然后取
该向量的长度为您提供距离。

If you plug in other <x,y,z> coordinates, then you will get the distance from that point to the floor plane.  This is the shortest distance to the plane, which means a vector perpendicular to the plane is made to your point, and then take the length of that vector gives you the distance.


这篇关于楼层确定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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