Calculate Ellipse based on 4 points

  • Level: Undergrad 
  • Thread starter HellScream_
  • Start date
  • Tags Tags
    Ellipse Points
1 reply · 2K views · last reply
HellScream_
Messages
1
Reaction score
0
I need to move an object based on 100 images rotating. The object needs to move in a path that is forming an ellipse when I'm rotating the image based on my gestures.

I have 4 points, 2 pairs of opposite points on X/Y axis, on the ellipse but how do I calculate the rest of the points so that I can calculate the new X/Y Value of my next/previous point?

Currently I'm just rotating my object in a circle what is a start but not what I want at all...

Is it possible to calculate an ellipse based on 4 opposite points?

Btw - I'm a programmer but I'm not an expert in mathematics, sorry.

3D rendering of a large walled camp of identical brick barracks in rows on a blue ground plane, with blue lines fanning from a point to a marked square labelled 7 at lower left.
 
Last edited:
The equation of an ellipse is ##\left(\dfrac{(x-x_0)}{a}\right)^2+\left(\dfrac{(y-y_0)}{b}\right)^2=1## which means you get four equations - for each of your points one - and have four unknowns ##a,b,x_0,y_0\,.## You have to solve this system of equations.