2*arctan(g/(2r)) = 2*arctan((g/2)/r)