code: public static double SquaredEuclidean(IntPoint p, IntPoint q) {
  
          double dx = q.x - p.x;
          double dy = q.y - p.y;
          return dx * dx + dy * dy;
  
      }
docs: Gets the Squared Euclidean distance between two points.
  
  @param p IntPoint with X and Y axis coordinates.
  @param q IntPoint with X and Y axis coordinates.
  @return The Squared euclidean distance between x and y.