I am developing an application that renders ECG rhythms that need to be animatable in response to user input. That part is not relevant to this site3, however I am starting with hand drawn rhythms, determining their polynomial representation and need to determine a bezier representation of those polynomials, which is the reason I am asking the question here. ( I can draw the rhythms using software like adobe illustrator, however the representation is not predictable and in order to animate them the bezier representation has to fit a certain format, so illustrator and the like are not an option, only drawing them by hand is).
So the question I need help with is, given a curve how can you derive the control points of its bezier representation? for example, if I wished to derive the bezier representation of a parabola:
$$F(x) = x^2, \:\: \{-2 \leq x \geq 2\}$$
with a parameterization such as:
$$F(t) = (4t -2)^2, \:\: \{0 \leq t \geq 1\} $$
what is method of obtaining the bezier coefficients for $F(t)$?
n = 3then $$ P_0 = A_0 ;; P_1 = A_0 + A_1/3 ;;P_2 = 3A_0 + 2A_1 + A_2 ;; P_3 = 13A_0 + 3A_1 + 3*A_2 + A_3$$ – user74091 Dec 15 '19 at 03:19