Distance from a point to a line the perpendicular "R". Draw the vertical line through "P" and label its intersection with the given line "S". At any point "T" on the line, draw a right triangle "TVU" whose sides are horizontal and vertical line segments with hypotenuse "TU" on the given line and horizontal side of length |"B"| (see diagram). The vertical side of ∆"TVU" will have length |"A"| since the line has slope -"A"/"B". ∆"PRS" and ∆"TVU" are similar triangles, since they are both right triangles and ∠"PSR" ≅ ∠"TUV" since they are corresponding angles of a transversal to the parallel lines "PS" and "UV" (both
Heronian triangle triangles with these sidelengths, and joins them together along the sides of length "a", to obtain a triangle with integer side lengths "c", "e", and "b" + "d", and with area If "a" is even then the area "A" is an integer. Less obviously, if "a" is odd then "A" is still an integer, as "b" and "d" must both be even, making "b"+"d" even too. Some Heronian triangles cannot be obtained by joining together two right-angled triangles with integer sides as described above. For example, a 5, 29, 30 Heronian triangle with area 72 cannot be constructed from two