I have a series of cubic polynomials that are being used to create a trajectory. Where some constraints can be applied to each polynomial, such that these 4 parameters are satisfied. -Initial Position -final Position -Initial Velocity -final Velocity
The polynomials are pieced together such that the ends of one polynomial are identical to the beginnings of the next to preserve continuity.
I instead want to represent these polynomials as cubic Bézier curves.
How would I find the x,y position of each control point for the cubic Bézier curves, such that it matches the curvature of the cubic polynomial.
Here is what I have so far, made in desmos.
https://www.desmos.com/calculator/agsywptfno
Currently the bezier curve is defined as a binomial, with a polynomial for X and or Y e.g. Bezier = (X(t), Y(t))
First control point = initial position (obviously).
Second control point = initial position plus 1/3 of initial velocity.
Third control point = final position minus 1/3 of final velocity.
Fourth control point = final position (obviously).