Apply quaternion