I have worked out that for polygons with a number of sides that is a binary number, you can rotate it by PI / sides radians, and it will be flat. It doesn't work for any other polygons with a non-binary number of sides. What equation do I use to find how much I should rotate it?