Rotation around a specific point (eg, rotate around 0,0,0)

前提是你 提交于 2019-12-01 00:47:38

The general procedure for rotation about an arbitrary point P is:

  1. Translate by -P (so P is at (0, 0, 0))
  2. Rotate around the origin
  3. Translate by P (to bring the origin back to the original location of P)

The easiest way to do this is to represent everything in homogeneous coordinates and represent translations and rotations by matrices. Composing the above three transformations (translate-rotate-translate) is done by matrix multiplication. If the rotation is composed of two or more simpler rotations, then the rotation matrix itself is a product of the matrices for the simpler rotations.

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