“Distance” (or angular magnitude) between two quaternions?

社会主义新天地 提交于 2019-12-03 09:31:36

Find the difference quaternion qd = inverse(q1)*q2).

Than find the angle between q1 and q2 by angle = 2 * atan2(qd.vec().length(), qd.w()) // NOTE: signed

The "angle" here, is the angle of rotation from q1 to q2 by shortest arc.

Also you can use this lib function from pyquaternion. Quaternion.absolute_distance(q0, q1)

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