Example #1
0
 public double getDistanceCuad(Point3f other)
 {
     return(Square(other.getX() - getX())
            + Square(other.getY() - getY())
            + Square(other.getZ() - getZ()));
 }
Example #2
0
 public double getDistanceL1(Point3f other)
 {
     return(Math.Abs(other.getX() - getX())
            + Math.Abs(other.getY() - getY())
            + Math.Abs(other.getZ() - getZ()));
 }
Example #3
0
 public double getDistance(Point3f other)
 {
     return(Math.sqrt(getDistanceCuad(other)));
 }