A, B, C and D sit on the four sides of a square, one on each side, in order around it. The square itself is gone. Here is how to get it back from the points alone.
The source code is at github.com/KirillOsenkov/LiveGeometry. It is written in .NET and Avalonia.