public class FreePoint extends PointElement {

  double init_x, init_y;

  FreePoint (double xVal, double yVal) {
    dimension = 0;
    dragable = true;
    init_x = x = xVal;
    init_y = y = yVal;
  }

  protected void reset () {
    x = init_x; y = init_y;
  }

  protected void drag (double tox, double toy) {
    x = tox; y = toy;
  }
}
