get(t) {
    const res = {x: 0, y: 0};
    let i;
    let a = 1;
    let b = 1;

    // The coefficient
    const c = [];
    for (i = 0; i < this.n; ++i) {
      c.push(a);
      a *= t;
    }

    for (i = this.n - 1; i >= 0; --i) {
      res.x += this.p[i].x * c[i] * b;
      res.y += this.p[i].y * c[i] * b;
      b *= 1 - t;
    }
    return res;
  }
@param Number float variable from 0 to 1