Connect the midpoints of the sides of a triangle. The three midsegments split it into four smaller triangles.
The source code is at github.com/KirillOsenkov/LiveGeometry. It is written in .NET and Avalonia.