'Difference' between two quaternions

穿精又带淫゛_ 提交于 2019-11-28 21:18:04

It sounds like you want the inverse of Q1 times Q2. Transforming by the inverse of Q1 will rotate the object back to its original frame (the initial orientation, as you say), and then transforming by Q2 will rotate it to its new orientation.

Note that the standard definition of a quaternion applies transformations in a right-to-left multiplication order, so you'll want to compute this as Q = Q2*Q1^{-1}.

Think of it this way

QInitial * QTransition = QFinal

solve for QTransition by multiplying both sides by QInitial^{-1} (^{-1} being the quaternion conjugate)

QTransition = QFinal * QInitial^{-1}

It's just that easy.

  • note to @Dan Park - if you disagree with my math, please post a response to my answer, don't change the math. As far as I know, it's right.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!