added distance from a point to ellipse