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