Drag the red corners of the triangles around with your mouse. As long as the three purple intersection points remain visible they will be contained in a single line.
This page uses JavaSketchpad, a World-Wide-Web component of The Geometer's Sketchpad.