Polygon Methods

Polygon(point1, point2, point3, ...)
Constructs a polygon with the given points as vertices. Also accepts a single parameter that is a list of the vertices.


Example: aPolygon = Polygon(Point(1,2), Point(3,4), Point(5,6))
Example: aPolygon = Polygon([Point(1,2), Point(3,4), Point(5,6)])

getPoints()
Returns a list containing clones of the points used to construct the polygon.


Example: pointList = aPolygon.getPoints()