circle nearest point: avoid division by zero