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
Kepler triangle if and only if that triangle is a Kepler triangle. A Kepler triangle can be constructed with only straightedge and compass by first creating a golden rectangle: Kepler constructed it differently. In a letter to his former professor Michael Mästlin, he wrote, "If on a line which is divided in extreme and mean ratio one constructs a right angled triangle, such that the right angle is on the perpendicular put at the section point, then the smaller leg will equal the larger segment of the divided line." In the Kepler triangle with sides formula_8 consider: Then the perimeters of the