Simple Method for Distance to Ellipse
Analytically finding the smallest distance between a point and an ellipse boils
down to solving a quartic equation. The easiest way to see this is by
considering that a circle can intersect an ellipse at most four times. In this
view, the problem is to find the circle that intersects
Carl Chatfield