Multiplying by a complex number rotates and stretches. Drag A and B.
The source code is at github.com/KirillOsenkov/LiveGeometry. It is written in .NET and Avalonia.