correctly compute the radius when both axes in the range are negative