Well, almost square, and the rounded corners makes it even more complicated geometrically. The trick is keeping the centre of mass at the same height throughout the rotation.