d3d里如何计算2个物体间距离是从物体自己的世界矩阵里面取值然后运算吗?公式是这个?The distance between
d3d里如何计算2个物体间距离 是从物体自己的世界矩阵里面取值然后运算吗? 公式是这个? The distance between two points <Ax,Ay,Az> and <Bx,By,Bz> can be found by again using the pythagorus theorem: dx = Ax-Bx dy = Ay-By dz = Az-Bz distance = sqrt(dx*dx + dy*dy + dz*dz)