code: public static double Cosine(IntPoint p, IntPoint q) {
          return Cosine(p.x, p.y, q.x, q.y);
      }
docs: Gets the Cosine distance between two points.
  
  @param p IntPoint with X and Y axis coordinates.
  @param q IntPoint with X and Y axis coordinates.
  @return The Cosine distance between x and y.