Skip to content

#16982 : vtkQuaternionSLERInterpolation

bugfix1 : The dot product is made between the rotations's axes represented by the quaternions instead of between the quaternions themselves. Hence, the SLERP is made for the rotations's axes and not for the quaternions.

bugfix2 :
A rotation can be represented by two quaternions (q and -q). To prevent the SLERP of taking the longest path on the unit sphere we add a check on the sign of the dot product. If it is negative, we replace q by -q to take the shortest path

Merge request reports