title: Draw a rectangle arround a polygon when given in certain angle
body: <p>Using Google Maps V3 API</p>
  
  <p>How can I draw a rectangle (It wouldn't exactly be a google map rectangle anymore but a rectangular polygon) around a polygon. Important however is that the rectangle has be rotated around a certain given angle. I do not mean to calculate the min and max of the coord of the polygon first to draw a rectangle and rotate it afterwards;<br>
  <img src="https://i.stack.imgur.com/H5ChP.png" alt="enter image description here"></p>
  
  <p>This image may be a better description from what I am trying to accomplish.</p>
  
  <p><strong>What I am trying to accomplish is to get the bounding rectangle of the polygon at an angle.</strong></p>