explanation of iOS rotation matrix

纵饮孤独 提交于 2019-12-03 07:54:15

Well, iOS or CoreMotion provides both. RotationMatrix and Euler Angle Representation. The documentation is here.

But if you are interested how this calculation works, the take a look here. To sum it up: Each Euler Angle can be represented by a rotation matrix which describes a rotation around one unit axis. Since there are three angles, you just have to combine them. But watch out! Euler angles are not unambiguous since there are different orders in which the rotation matrices can be multiplied.

EDIT: You linked to a quaternion calculation. Or am I completely wrong?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!