Source: https://www.math.md/stireal/matematica/candidat/geom_triunghi.pdf