public double getDistanceCuad(BuffPoint4f other) { return(Square(other.getX() - getX()) + Square(other.getY() - getY()) + Square(other.getZ() - getZ()) + Square(other.getW() - getW())); }
public double getDistanceL1(BuffPoint4f other) { return(Math.Abs(other.getX() - getX()) + Math.Abs(other.getY() - getY()) + Math.Abs(other.getZ() - getZ()) + Math.Abs(other.getW() - getW())); }
public double getDistance(BuffPoint4f other) { return(Math.sqrt(getDistanceCuad(other))); }