This project is not perfect but it approximately demonstrates what I am trying to show. Click and drag the purple circles to move around the square. It will stretch as the circles move. If this is recreated but all of the maths is done exactly rather than approximately, this could be useful for drawing the sides of a 3D cube.
most by @scratchfan321, a little by me