solve cos(theta) = R / (h - R) for h