docs: public static boolean isRawHit(double[] data, int points, double testx, double testy)
      {
          boolean c = false;
          int i, j;
          for (i = 0, j = points - 1; i < points; j = i++)
          {
              if (((data[2*i+1] > testy) != (data[2*j+1] > testy))
                      && (testx < (data[2*j] - data[2*i]) * (testy - data[2*i+1]) / (data[2*j+1] - data[2*i+1]) + data[2*i]))
              {
                  c = !c;
              }
          }
          return c;
      }