Function rotateVectorByQuaternion