Shortest Distance to Ellipse from Point
Shortest Distance to Ellipse from Point
(OP)
Shortest Distance to Ellipse from Point,
Or: What is the Line Perpendicular to the Ellipse?
What is a good method to determine the shortest distance from a point to an Ellipse? This is similar to finding the line through a given point that is perpendicular to an ellipse.
To make it simple, I have the ellipse centered at the origin, (0,0), and the major axis along x. Also the point is always in quadrant I, and is always outside the ellipse.
Thanks for your help,
Harry
Or: What is the Line Perpendicular to the Ellipse?
What is a good method to determine the shortest distance from a point to an Ellipse? This is similar to finding the line through a given point that is perpendicular to an ellipse.
To make it simple, I have the ellipse centered at the origin, (0,0), and the major axis along x. Also the point is always in quadrant I, and is always outside the ellipse.
Thanks for your help,
Harry





RE: Shortest Distance to Ellipse from Point
Calculate formula for a circle that is tangent to the ellipse and centered on the point of interest. If you have some advanced CAD with sketch functions like SolidWorks available, it can do this for you.
RE: Shortest Distance to Ellipse from Point
I forgot to say, I will be solving this in Fortran (or some other language). I am looking for a closed form solution.
TheTick:
You give me an interesting idea - rolling a circle over the ellipse until it intersects.
I have tried calculating the formula for the normal line (to the ellipse) and solving for the normal line that intersects the point. But I got bogged down in the math.
Harry
RE: Shortest Distance to Ellipse from Point
Some offhand ideas about how to approach the problem:
The formula for a line tangent at any given point would be the derivative of the ellipse. The line perpendicular to the tangent has a slope =-1/(tangent slope).
I'll be back. Gotta tend to discontented baby.
RE: Shortest Distance to Ellipse from Point
reduce position on the ellipse to a single parameter function, t= 0 to 1. For each t, the distance from a point on the ellipse (x(t), y(t)) to the point of interest (X,Y) is sqrt((X-x(t))^2 + (Y-y(t))^2). The closest point is where the derivative of the distance function is zero.