/**
 * A point in two-dimensional space, represented by its cartesian
 * coordinates relative to a fixed coordiante frame.
 */
public class Point {
  private double x;
  private double y;

  /*Create a new point*/
  public Point(double x, double y) {
    this.x = x;
    this.y = y;
  }
  
  public double getX() {
    return x;
  }

  public double getY() {
    return y;
  }
  
  public void move(double dx, double dy) {
    x += dx;
    y += dy;
  }
  
public String toString() {
    return "(" + x + "," + y + ")";
  }
  
}

