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