I hope you can help me with the following, probably rather complex dilemma: I generally want to find an ellipse given two points and their respective tangents in 2-D space (X and Y coordinates). Now this question has already been answered on this forum here, with the answer that there exists an infinite number of ellipses satisfying these criteria.
I do have a set of data point pairs along with their respective tangents for each of which I want to find a unique ellipse for. Now this is impossible, as stated above, so I want to utilize boundary conditions to find the most probable, unique ellipse out of the infinite solutions for each data point pair (and their tangents). How I want to do this would probably lead too far, I just wanted to mention it in order to provide my motivation for the question below.
To this end I would like to identify the mechanisms underlying each set of infinite ellipses corresponding to each pair of data points and their tangents. I believe the key to this end is the development of the ellipse center points. Below you can find an altered version of the image kindly provided by the user Rahul in response to the question linked above, basically highlighting the infinite number of ellipses that pass through the points P and Q while sharing the same tangents.
As you can see in this case the center points of all ellipses lie on a line. I believe by finding the center point equation for each of my data point pairs I will be able to choose the appropriate center point for each pair, in turn allowing me to find a unique solution as I now have 5 pieces of information (two points, two tangents, one center point).
So much for background. Now: How do I go about achieving this? My ellipses will most likely be off-centered and angled. We can further assume that the slope of my tangents for each data point pair will never be equal, so there will always be a center point shift of some sort for the infinite solutions.
What I have found so far is the general solution for 2-D ellipses:
$$A x^2 + 2 B x y + C y^2 + 2 D x + 2 E y + F = 0 \qquad(1)$$
And an expression involving the slope/tangent m at each point (x,y) taken from an answer by user Blue to this question:
$$A x + B( y + x m ) + C y m + D + E m = 0 \qquad(2)$$
Unfortunately I could neither find nor derive an equation for the calculation of the center point of a tilted, off-centered ellipse. With my rather basic understanding of math reaching its limits at a question this complex, I would hence like to know:
- What is the general formula for the center of a tilted, off-centered ellipse?
As I further believe that solving this analytically will be a rather huge mess, through which I wouldn't want to ask anyone else to wade:
- What simplifications can I make in order to solve this analytically [e.g. (1) for P1 (x1,y1) - (1) for P2 (x2,y2) in order to remove F], without risking that my entire calculation unravels a few hours in to 0 = 0?
If this question is not well-enough explained please ask away, I will do my best to describe the issue as good as possible.