//package delaune;

import  java.io.IOException;


public class Point2D {
  public int x;
  public int y;

  public Point2D() {
    this(0, 0);
  }

  public Point2D(int x, int y) {
    this.x = x;
    this.y = y;
  }

  public Point2D(Point2D p) {
    this(p.x, p.y);
  }


 public float distance(Point2D p) {
        float dx, dy;

        dx = p.x - x;
        dy = p.y - y;
        return (float)Math.sqrt((double)(dx * dx + dy * dy));
    }
}
