坐标转换 [英] Coordinates transformation

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

问题描述

我在空间中有两个3D对象,我想将点从一个对象复制到另一个.问题在于这些对象不共享公共坐标系,因此我必须进行坐标转换.我有两个对象的局部变换矩阵,也可以访问世界变换矩阵.我知道使用这些转换矩阵需要进行一些计算,但是我不知道该怎么做.

I have two 3D objects in space and i want to copy the points from one object to another. The problem is that these objects don't share a common coordinate system and i have to do coordinate transformations. I have the local transformation matrix for both objects and i have also access to the world transformation matrix. I know there's some calculations to be done using these transformation matrices but i don't know how.

如果将其复制到另一个对象(或其坐标系)中,如何变换第一个对象中的一个点,使其具有相同的位置(相对于世界坐标)?

How can i transform one point in the first object so that it has the same position(relative to the world coordinates) if i copy it in the other object( or its coordinate system )?

谢谢

推荐答案

好,您必须应用已有的转换运算符. 例如,极坐标(r,t)和笛卡尔坐标(x,y)之间的关系定义为:

Well, you have to apply the conversion operator that you have. E.g., the relation between polar (r, t) and cartesian (x, y) coordinates is defined by:

x = rcost
y = rsint

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

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