Can someone help me to understand why quaternion angles are used here instead of euler angles for loss calculation?