look\ at\ the\ picture\\\\tan\alpha=\frac{H}{r}\to H=r\cdot tan\alpha\\\\cot\beta=\frac{H}{r}\to H=r\cdot cot\beta