6 DOF Distance formula

Started by
12 comments, last by alvaro 14 years ago
On top of what Eric said:
(1) Since q and -q represent the same orientation, you should take the absolute value of the dot product before you take the arccos.
(2) You don't need to compute the expensive arccos at all if all you need to know is which of them is closest. The smallest angle will be the one with the highest cosine, so simply find the one that maximizes that.
Advertisement
Quote:Original post by alvaro
On top of what Eric said:
(1) Since q and -q represent the same orientation, you should take the absolute value of the dot product before you take the arccos.
(2) You don't need to compute the expensive arccos at all if all you need to know is which of them is closest. The smallest angle will be the one with the highest cosine, so simply find the one that maximizes that.


Agreed!
Thank for reply all of user,any c++ example code that implement above formulas.
Quote:Original post by usman1266
Thank for reply all of user,any c++ example code that implement above formulas.


No: Do your own work. If you can't figure it out, post what you've tried, and we'll help you.

This topic is closed to new replies.

Advertisement