Esempio n. 1
0
 public double getDistanceL1(Point4d other)
 {
     return(Math.Abs(other.getX() - getX())
            + Math.Abs(other.getY() - getY())
            + Math.Abs(other.getZ() - getZ())
            + Math.Abs(other.getW() - getW()));
 }
Esempio n. 2
0
 public double getDistanceCuad(Point4d other)
 {
     return(Square(other.getX() - getX())
            + Square(other.getY() - getY())
            + Square(other.getZ() - getZ())
            + Square(other.getW() - getW()));
 }