|
发表于 2006-6-13 13:54:00
|
显示全部楼层
Re: DirectX 9 3D游戏程序设计入门 (全文翻译) 下载
第26页
作者版本:
点到平面上最近的点
假如我们在空间中有一个点p并且想找到在平面( n, d)上的与p最接近一个点q。注意如果平面的法向量是单位长度,这将简化问题。
从图13我们能看出q = p + (?k_n),k是有符号之分的从点p到平面的距离,也就是点p和q之间的有向距离。假如平面的法向量n是单位长度,那么n*p + d 就是从平面到点p有向距离.
英文原版:
From Figure 13 we can see that q = p + (?kn), where k is the shortest
signed distance from p to the plane, which is also the shortest signed
distance between the points p and q. Recall that if the plane’s normal
vector n is of unit length, then n p + d gives the shortest signed distance from the plane to the point p.
我的更正:
这个翻译没有什么错误,但是公式有个小错误作者的公式q = p + (?k_n)多了一个下划线“_”所以会让新手摸不着头脑!正确的是原版中的q = p + (?kn)
我会继续努力挑刺的!嘿嘿。直到把这盘美味的鱼挑的只剩下鲜美的肉为止! |
|