title: Get the width and height of rotated object after transform
body: <p>This question is a followup to the question: <a href="https://stackoverflow.com/questions/7565542/width-height-after-transform">width/height after transform</a>.</p>
  
  <p>I am posting a new question because that question only solves the width and not the height.
  The formula: </p>
  
  <pre><code>var x = $('#box').width()*Math.cos(rotationAngle) 
        + $('#box').height()*Math.sin(rotationAngle);
  </code></pre>
  
  <p>works well for the width, what is the equivalent formula to calculate the height?</p>
  
  <p>Thanks.</p>