title: Generate bounding box from starting point (SVG)
body: <p>I need to generate a bounding box for shapes that are not guaranteed to be axis-aligned. Each shape has a point which designates their "front" on which the bounding box should have one face.</p>
  
  <p>In a nutshell, this shape/bounding box:</p>
  
  <p><a href="https://i.stack.imgur.com/dqQcv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dqQcv.png" alt="enter image description here"></a></p>
  
  <p>Needs to end up looking something like this:</p>
  
  <p><a href="https://i.stack.imgur.com/DQrAe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DQrAe.png" alt="enter image description here"></a></p>
  
  <p>Unfortunately, the shapes themselves aren't transformed with their rotations, they're simply drawn that way, so all I'm left with is the singular point to try and determine where the bounding box should lie.</p>
  
  <p>Any ideas on this one? If it's helpful to know, these graphics are defined in SVG and are being processed by a C# implementation using the vvvv/SVG lib on Github.</p>