I am writing a "painter", i.e. the user leads the finger across the screen, and I get an array of points {X1, Y1; X2, Y2; X3, Y3; .... Xn, Yn}

Question: How can I convert this array into Bezier curves (they can be drawn on Canvas using standard methods)? Language is not important, I need to understand the mathematical model

Question2: are there standard libraries for solving this problem?

  • And what is the difficulty, actually? We act by definition : take the sum of the products of coordinates on the Bernstein polynomials. - Zealint
  • Java PathIterator is not suitable for this? - Igor
  • So you want to get pivot points? - Cerbo
  • Yes. Plus, you need to understand after what period they take - Igor
  • Do you need a library or are you ready to implement it yourself? This is not a very complex algorithm in terms of implementation. Of course, if you start digging, you will come across lethal mathematics. But, I repeat, not with the implementation. - hedgehogues

0