\tan{\frac{\beta}{2}}=\frac{r}{\frac{a}{2}}=\frac{2r}{a}