Added some more features to Polygon2D.