class Polygon
public class Polygon extends TwoDimFig {
protected Vector vertices;
int R = 100; double ANGLE = 2.0 * 3.14159 / n;
for(int i = 0; i < n; i++) {
Point p = new Point((int)(R + R*(Math.cos(i * ANGLE))),
(int)(R + R*(Math.sin(i * ANGLE))));
public String describe() {
return "a polygon with " + vertices.size() + " vertices";