I was never good in trigonometry. I have a rectangle with dimensions $L_1$ and $W_1$. I want to rotate it so that it fits inside another rectangle with dimensions $L_2$ and $W_2$. I need to find the angle.
I have worked out the formula that I need is: $$L_1 \cos\theta + W_1 \sin \theta = L_2$$
I don't know how to solve for $\theta$.
I understand that there won't be a solution for $$L_2 > \sqrt{L_1^2 + W_1^2}$$
