Ejemplo n.º 1
0
 public double getDistanceCuad(BuffPoint2i other)
 {
     return(Square(other.getX() - getX())
            + Square(other.getY() - getY()));
 }
Ejemplo n.º 2
0
 public double getDistanceL1(BuffPoint2i other)
 {
     return(Math.Abs(other.getX() - getX())
            + Math.Abs(other.getY() - getY()));
 }
Ejemplo n.º 3
0
 public double getDistance(BuffPoint2i other)
 {
     return(Math.sqrt(getDistanceCuad(other)));
 }