I have checked this on Wikipedia and Brilliant.org but did not find the answer. I found that the length is the longest side based on non-famous site, but I need to confirm this.

---

If a rectangle is drawn such that there are 2-parallel horizontal lines and 2-parallel vertical lines, then it make sense to call the base as $width$ and the vertical as $height$.

[![enter image description here](https://i.stack.imgur.com/TUskF.png)](https://i.stack.imgur.com/TUskF.png)

---

But if the rectangle is rotated such that the there are no vertical or horizontal sides, that way of naming becomes ambiguous. What are the definition of $width$ and $height$ of a rectangle?

[![enter image description here](https://i.stack.imgur.com/6n0TC.png)](https://i.stack.imgur.com/6n0TC.png)