rotation - "Distance" (or magnitude) between two quaternions? -
I would like to find "distance" between two quaterions. By "distance" I mean a single value, not another quatrainnoy (this difference will be, no distance, and I know how to do this: inversion (q1) * q2).
I need to apply more. For physics, the torque is moved away from its original angle.
I do not understand the quadrangles involved, so a code based example would be most useful. I have noticed many other questions but I have no doubt that the answer to my question, or at least I do not understand it.
Any help would be greatly appreciated :)
int quaternion qd = Inverse (q1) * q2).
The angle between q1 and q2 angle = 2 * atan2 (qd.vec (). Length (), qd.w ()) Note: signed
Here "angle" , It has an angle of rotation from q1 to minus q2 by arc.
Comments
Post a Comment