Distance between an ellipse and a line

      Example.

(x - 1)^2 + 1/4 (y - 2)^2 = 1,  y = -x + 8
or
x = cos(t)+1, y = 2*sin(t)+2,   y = -x + 8

d = 1.96405   P1 = (1.506, 3.725)   P2 = (3.0000, 5.0000)