Let's assume I have a cubic bezier curve that is provided with A, B, C, D points, where
A is the start of the curve
B is the first control point
C is the second control point
D is the end of the curve.
The curve's parametric equation is given like this:
$x(t) = A_x + 3(B_x - A_x)t + 3(A_x - 2B_x + C_x)t ^ 2 + (3(B_x - C_x) + D_x - A_x) t ^ 3, 0\leqslant t\leqslant 1$ $y(t) = A_y + 3(B_y - A_y)t + 3(A_y - 2B_y + C_y)t ^ 2 + (3(B_y - C_y) + D_y - A_y) t ^ 3, 0\leqslant t\leqslant 1$
Let's assume this curve is (UPD: almost) identical to the arc of the ellipse with the center in the point $O$.
Question:
What is the best strategy to find the center $O$, radii and rotation of (UPD: the approximated) ellipse that represents the corresponding arc?