docs: public static double Cosine(double x1, double y1, double x2, double y2) {
  
          double sumProduct = x1 * x2 + y1 * y2;
          double sumP = Math.pow(Math.abs(x1), 2) + Math.pow(Math.abs(x2), 2);
          double sumQ = Math.pow(Math.abs(y1), 2) + Math.pow(Math.abs(y2), 2);
          sumP = Math.sqrt(sumP);
          sumQ = Math.sqrt(sumQ);
  
          double result = 1 - (sumProduct / (sumP * sumQ));
          return result;
      }