\left(h-r\right)^2=\left(b-\frac{a}{2}\right)^2+r^2