in a right-angle triangle, such that
:
Using Heron's formula:
A complete derivation of the Heron formula can be found in the mathematics section on triangles.
If is parallel to
then: