The Euclidean distance of the point to the circle is:
We then need to minimize over . Unfortunately, there is no closed form solution for this, so we need to use an iterative method.