code: public static double Euclidean(double x1, double y1, double x2, double y2) {
          double dx = Math.abs(x1 - x2);
          double dy = Math.abs(y1 - y2);
  
          return Math.sqrt(dx * dx + dy * dy);
      }
docs: Gets the Euclidean distance between two points.
  
  @param x1 X1 axis coordinate.
  @param y1 Y1 axis coordinate.
  @param x2 X2 axis coordinate.
  @param y2 Y2 axis coordinate.
  @return The Euclidean distance between x and y.