How to Determine the Minor Axis of an Ellipse from Given Points?

  • Thread starter Thread starter Physt
  • Start date Start date
  • Tags Tags
    ellipses
Click For Summary
To determine the minor axis B of an ellipse encompassing given points, the major axis A is established by identifying the two furthest points and calculating the centerpoint C as their average. The focus F can be found using the equation PF_1 + PF_2 = 2a, with the constraint that CF_1 equals CF_2, where F_1 and F_2 are positioned along the line segment connecting the endpoints of the major axis. The discussion emphasizes that the algorithm may not yield the smallest ellipse in terms of area or perimeter, as the placement of point P can significantly affect the ellipse's dimensions. The user ultimately found a solution using WolframAlpha to solve the equation for F. Understanding these relationships and equations is crucial for accurately determining the minor axis of the ellipse.
Physt
Messages
48
Reaction score
1
I'm trying to write an algorithm that will create the smallest possible ellipse to encompass any number of points on 2D euclidean space. I've gotten it to the point where I can attain the major axis A by taking the furthest two points in the set and likewise the centerpoint C as the average of those two furthest points. I now want to loop through the remaining points in the set to find the highest minor axis B value, once the two furthest points are found the remaining points are normalized to them (moved/rotated) such that the center point of the ellipse is the new (0,0) and it is going to be an ellipse with horizontal foci, my question is:

Given the centerpoint of a normalized ellipse, it's major diameter A and any point P laying on the circumference of that ellipse, how do I find the focus F, or the minor diameter B?

If this helps explain it, I have C, a and P of this diagram, I want to find b or f:
http://upload.wikimedia.org/wikipedia/commons/6/65/Ellipse_Properties_of_Directrix_and_String_Construction.svg
 
Last edited:
Physics news on Phys.org
Simple. You solve

PF_1 + PF_2 = 2a
subject to the constraint

CF_1 = CF_2
where F_1, F_2 lie along \overline{AC} on opposite sides of C. You have two algebraic equations for two unknowns: the locations of the two foci.

By the way, your algorithm is not going to find the smallest ellipse, if by "smallest" you mean "smallest area" or "smallest perimeter" (and take care, these two definitions of "smallest" are not compatible!). Your algorithm assumes that the two most distant points will coincide to the two endpoints of the ellipse along the major axis. Given the two endpoints F and G, the third point P can be chosen such that all of these hold:

1. FG > PG > PF

2. The ellipse having FG as one of its axes, and passing through P, can be made arbitrarily large (either in perimeter or area) by appropriate placement of P (very near F).

3. FG actually turns out to be the minor axis, rather than major!

In fact, in the case that 3 holds, the equations I gave at the top will have no real solutions (because the equations assume the foci are on the line \overline{FG}).
 
I did find http://www.cs.cornell.edu/cv/OtherPdf/Ellipse.pdf online, but it will take a bit of study on my part to figure out how to code it into an algorithm, I'd like to know how to solve this equation first as it seems a lot simpler:
Ben Niehoff said:
PF_1 + PF_2 = 2a
subject to the constraint
Ben Niehoff said:
CF_1 = CF_2
Is there any way you could break the equation down for me ending in f= so that I can see how it is done?
 
Nope, you're responsible for your own algebra.
 

Similar threads

Replies
2
Views
5K
Replies
3
Views
10K
  • · Replies 12 ·
Replies
12
Views
7K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 4 ·
Replies
4
Views
13K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 27 ·
Replies
27
Views
6K