Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calculating a point on an ellipse

Say I have two points A and B positioned on the circumference of an ellipse, and they form an angle X from the center point. Now say that point A is moved to a new point C. How can I calculate the new point for B such that the angle X remains constant? Pointers to code of some kind would be appreciated.

like image 733
Kevin Avatar asked Jun 01 '12 20:06

Kevin


1 Answers

Why not use the polar form of an ellipse where the angle is measured from the ellipse centre??? http://en.wikipedia.org/wiki/Ellipse#Polar_form_relative_to_center From this equation, if you know the value of the angle between A and B (say theta), and you know the value of central angle of the new point C (say phi), then your required point D can be calculated from this polar form using an angle (theta + phi)

like image 115
mathematician1975 Avatar answered Sep 30 '22 01:09

mathematician1975