docs: function(x, y) {
          var p = this.points,
              l = p.length / 2,
              i,
              j,
              c = false;
  
          for (i = 0, j = l - 1; i < l; j = i++) {
              if (
                  p[2 * i + 1] > y !== p[2 * j + 1] > y &&
                  x <
                      ((p[2 * j] - p[2 * i]) * (y - p[2 * i + 1])) /
                          (p[2 * j + 1] - p[2 * i + 1]) +
                          p[2 * i]
              ) {
                  c = !c;
              }
          }
  
          return c;
      }