code: public static int distance (int x1, int y1, int x2, int y2) {
          return (int)Math.sqrt(distanceSq(x1, y1, x2, y2));
      }
docs: Returns the Euclidian distance between the specified two points, truncated to the nearest
  integer.