Fix the calculation error for finding the nearest point in circle.