So actually the workspace looks like:

You can specify the number of points (from 2 to 13), and drag any anchor point by watching in real time how the curve changes.
Made for myself, in order to deal with curves of different order.
Basic knowledge is derived from here:
Bernstein PolynomialBinomial_coefficient')
You can also read about
the Bezier curve , which is a special case of the Bernstein polynomial.
Sources are attached, the archive also compiled (Win_X86) exe'shnik.
Archive with source code and exe'shnikom.MirrorRevision from VordigontThe class implementing the polynomial is commented out, there will be no problem to be sorted out. Sharpe code.