Calculate Ellipse based on 4 points

  • Thread starter Thread starter HellScream_
  • Start date Start date
  • Tags Tags
    Ellipse Points
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.

rhyj2.png
 
Last edited:
Physics news on Phys.org
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.
 
Back
Top