How do I scale a rectangle
Hello everyone,
Ok then from the top.
I have a rectangle and I want it to scale at a set angle/percentage, from the corner I am dragging.

As you can see, I want to be able to drag each corner, independent of each other corner, and for the whole rectangle to scale in the dragged fixed angle direction, As though its scaling to a fix percentage of the original size.
Using the image attached as an illustration, if I drag point A then the rectangle will only scale along the blue line direction.
If the user then clicks on another corner, and starts to drag it, then the rectangle will scale from the point clicked, along a theoretical angle. And so on as the user moves around each corner.
This one has be stumped so any help would be appreciated.
Thanks in advance.
