rotationBetween method for quaternion.