Fix bug in Rotation joint interpolation and distances.