docs: public void calc(double t, double[] result, double... controlPoints)
      {
          if (result.length < 2)
          {
              throw new IllegalArgumentException("result needs size 2");
          }
          calc(t, (x,y)->{result[0]=x;result[1]=y;}, controlPoints);
      }