danfis / libccd

Library for collision detection between two convex shapes
Other
478 stars 108 forks source link

Optimize ccdQuatRotVec #14

Closed ppiastucki closed 8 years ago

ppiastucki commented 8 years ago

Hi,

Please correct me if I am wrong, but looking at the code in ccdQuatRotVec I believe it can only handle unit quaternions. In this case a more efficient implementation is possible like the one included in this PR. As the function is called quite often from support functions I noticed some performance gain after applying the change when using libccd in ODE.

Regards, Piotr