📜 ⬆️ ⬇️

We draw a Bernstein polynomial for an arbitrary number of reference points.

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 Polynomial
Binomial_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.
Mirror
Revision from Vordigont

The class implementing the polynomial is commented out, there will be no problem to be sorted out. Sharpe code.

Source: https://habr.com/ru/post/112360/


All Articles