Ejemplo n.º 1
0
 //
 public double distanceFrom(MousePoint from)
 {
     double tmp = (double)(x - from.getX()) * (double)(x - from.getX()) + (double)(y - from.getY()) * (double)(y - from.getY());
     return Math.Sqrt(tmp);
 }