You can rely on ratios:

```js
var ratio = distanceFromPointToCenter / circleRadius;
var closestX = xDistanceFromPointToCenter / ratio;
var closestY = yDistanceFromPointToCenter / ratio;
```