Domain generalization through the lens of angular invariance