Mouse to rotate W/S to change size
I needed to do this for a game I was working on for a while but I couldn't work out. Upon learning more about matrix linear transformations today, I thought I could now do what I needed to do (transformations of a rectangle, specifically rotation of points) using the matrixes. However, turns out I just needed to use trigonometry which I also learned more about recently which is how I worked out how to do this. There is probably a more sophisticated way to achieve this. Might use this for a game in future if I want to take a break from Polaris which I plan to finish for the most part within the next month.