Two triangles are "in perspective from a point" when the lines through matching vertices all meet in one point — like a shape and its shadow.
The source code is at github.com/KirillOsenkov/LiveGeometry. It is written in .NET and Avalonia.