https://matecalculator.com/math/square-diagonal