예제 #1
0
 public double getDistanceL1(Point2i other)
 {
     return(Math.Abs(other.getX() - getX())
            + Math.Abs(other.getY() - getY()));
 }
예제 #2
0
 public double getDistanceCuad(Point2i other)
 {
     return(Square(other.getX() - getX())
            + Square(other.getY() - getY()));
 }