Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我有一个旋转矩阵,用于旋转 3D 模型。在将其应用于模型之前,是否可以将旋转矩阵的偏航设置为零?
问候,亚当。
RotMatrix = R(偏航)*R(俯仰)*R(滚动)
为了消除偏航因子,我们可以在负偏航矩阵上左乘这个矩阵
RotMatrixNew = R (-yaw)*R(偏航)*R(俯仰)*R(滚动)= I ** R *(俯仰)*R(滚动)= R(俯仰)*R(滚动)
如果之前不知道偏航角,则可以计算为
偏航 = ArcTan2(RotMatrix[2][1], RotMatrix[1][1])