I hope I have phrased my question correctly.
Let's assume I have a rectangle with a
Then I pick an aspect ratio of
How can I calculate the size of the rectangle that bounds the original rectangle, without shrinking it?
In other words, I want to keep the original rectangle as is, and "place" it inside a canvas that obeys the aspect ratio, I'm trying to calculate the canvas size.
Any help would be highly appreciated.