Jquery – Scaling a rotated rectangle to the minimum size needed to cover it's container
I have a rectangle frame, as well as a second rectangle which can rotate. I would like the determine what minimum scale needs to be applied to the rotating rectangle in order to completely cover the stationary frame. I have…