public class FitEllipse2Dextends ObjectFit 2D data points with a ellipse using least-square fitting. The method implements the direct algorithm of Fitzgibbon et al, improved by Halir et al, to find the ellipse which best approximates a collection of points. The ellipse is defined through the 6 coefficients of its algebraic equation:
A*x**2 + B*x*y + C*y**2 + D*x + E*y + F = 0
It can also compute the ellipse characteristics (center, theta, major, minor) from its algebraic equation.