code: public double distance(int[] point1, int[] point2) throws Exception {
      return Math.sqrt(Long.valueOf(distance2(point1, point2)).doubleValue());
    }
docs: Calculates the Euclidean distance between two points.
  
  @param point1 The first point.
  @param point2 The second point.
  @return The Euclidean distance.
  @throws Exception In the case of error.