How to find the center of an Ellipse, given a focal point, radius, and eccentricity

1.9k Views Asked by At

I am attempting to create a small computer simulation with planetary orbits.

Calculating the position a planet has on its orbit at a certain time works fine. However, I now want to draw their orbits as well.

The problem is, that to draw an Ellipse in most computer programs, I need to specify the center (x,y) coordinates as well as a width and a height. However, the only information I have available is the following;

  • The (x,y) coordinates of one of the focal points $f$, as this is the position the planet revolves around.
  • The size of the semi-mayor axis $a$ of the ellipse.
  • The eccentricity $\epsilon$ of the ellipse.

(Also, it is presumed that the semi-mayor axis is parallel to the x-axis.)

How can this information be used to calculate the (x,y) position of the center of the ellipse?

1

There are 1 best solutions below

0
On

Turning existing comments into an answer: Wikipedia will tell you that

$$\epsilon=\dots=f/a$$ (where again $a$ and $b$ are one-half of the ellipse's major and minor axes respectively, and $f$ is the focal distance)

So you know $\epsilon$ and $a$, you can compute $f$ and that's the distance between focus and center. If the term “focal distance” isn't clear enough (it could be the distance between the foci, after all), the images on Wikipedia make it clear that this is the distance you need, between center and focus. If you also know the direction, you can just move that distance in the given direction. However, your specification doesn't tell us whether you should move in the positive or the negative $x$ direction. But perhaps you know which.