You're correct. We need to be a bit careful if the point is exactly the center of the circle (i.e. `squaredDistance === 0`), in this case I think the only sensible closest point to return is the center of the circle.