$$\frac{\sqrt{a_1^2 + a_2^2}}{2.b}$$