import java.awt.Graphics2D;
import java.awt.geom.Point2D;

/**
 * This class implements a polygon. A polygon is a closed curve made up from
 * line segments that join the polygon's corner points.
 * 
 * @author YOUR_NAME_HERE. Created Sep 30, 2008.
 */
public class Polygon {
	// TODO, Prob. C2: study the methods required and decide what field(s) to use

	/**
	 * Constructs a Polygon object with no points. You might call this a
	 * zero-sided polygon.
	 */
	public Polygon() {
		// TODO, Prob. C2: implement the Polygon constructor
	}

	/**
	 * Adds the given point to the perimeter of this polygon.
	 * 
	 * @param point
	 */
	public void addPoint(Point2D point) {
		// TODO, Prob. C2: implement the addPoint() method
	}

	/**
	 * Calculates the circumference of this polygon by summing the distance
	 * between successive points. Don't forget to include the distance between
	 * the last point and the first one.
	 * 
	 * @return the circumference of this polygon
	 */
	public double perimeter() {
		// TODO, Prob. C2: implement the perimeter() method
		return -1.0;
	}

	/**
	 * Calculates the area of this polygon according to the formula printed on
	 * the exam.
	 * 
	 * @return the area of this polygon
	 */
	public double area() {
		// TODO, Prob. C2: implement the area() method
		return -1.0;
	}

	/**
	 * Draws the outline of this polygon onto the given graphics object.
	 * 
	 * @param g
	 */
	public void drawOn(Graphics2D g) {
		// TODO, Prob. C2: implement the drawOn() method
	}
}
