Compare euler angles to check if they describe the same rotation.

The euler angles (0, 180, 0) describe the same rotation as the angles (180, 0, -180). What would be the best way to find out for two given euler-rotations, if they restult in the same rotation?

You can use Quaternion.Angle to compute the angle between two rotations:

Quaternion a = Quaternion.Euler (0f, 180f, 0f);
Quaternion b = Quaternion.Euler (180f, 0f, -180f);

float angle = Quaternion.Angle (a, b);

bool sameRotation = Mathf.Abs (angle) < 1e-3f;