Added static methods to Polygon2D for producing polygons from simple kinds of shapes.