Euler's theorem in geometry