title: Find the coordinates of the corners of a rotated object in fabricjs
body: <p>Suppose I have an image in a fabricjs canvas. I can easily calculate the coordinates of the corners based on the image's <code>top</code> &amp; <code>left</code> values, and its size.  </p>
  
  <p><strong>How can I do so when the image is rotated by any degree?</strong></p>
  
  <p>Example:</p>
  
  <p><img src="https://i.stack.imgur.com/xcSIK.png" alt="enter image description here"></p>
  
  <p>EDIT: Preferably without the use of trigonometry, if there is a simpler method implemented in fabricjs itself or somewhere else.</p>