Registered Member
|
It seems (based on inspecting the code and running the following example) that Rotation2D's slerp is actually computing a lerp of the internally stored angle rather than a slerp of the implied rotation.
In this example the two rotations are by CCW by pi*0.9 and CW by pi*0.9. A half-way slerp should then be rotation by pi.
Instead the program above outputs:
A more damning example happens if the angles are 0 and 2*pi. These rotations are identical so slerping between them should not change anything yet a halfway slerp using Rotation2D would give pi. |
Moderator
|
hm, right, I guess that this Rotation2D class did not get much attention so far... Fixed in the devel branch:
https://bitbucket.org/eigen/eigen/commits/abf1f8e4b424/ |
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]