/** Point: first draft of the Point class
 * Author: CPSC 111, Section 206, Spring 05-06
 * Date: Jan 26 2006
 *
 * This class is a 2D mathematical point, created in class on Jan 26. 
 * We haven't yet created all of the intended methods that we designed
 * in our UML, but we're testing as we go with the associated
 * PointTest class.
 */

public class Point
{

    private int xCoord;
    private int yCoord;

    public Point()
    {
    }
    
    public Point(int x, int y)
    {
        setPosition(x,y);
    }

    public void setPosition(int x, int y)
    {
        xCoord = x;
        yCoord = y;
    }

    public void translate(int deltaX, int deltaY)
    {
        xCoord = xCoord + deltaX;
        yCoord = yCoord + deltaY;
    }

    public int getX()
    {
        return xCoord;
    }

    public int getY()
    {
        return yCoord;
    }
}
