title: Calculating new bounds after rotating a square
body: <p>I'm trying to calculate the size of a bounding box after rotating a square. I've attached an image that hopefully describes what I'm looking to do.</p>
  
  <p><img src="https://i.stack.imgur.com/02udm.png" alt="enter image description here"></p>
  
  <p>After rotating by x degrees, the bounds becomes bigger. Is there a way to calculate this new size, given the angle and the dimensions of the original square? Thank you.</p>