arc nearest point: avoid division by zero