Perpendicular

The first simple construction. One can move the endpoints with the mouse. The +/- keys and the cursor keys work too.