title: How could I simplify a complex polygon?
body: <p>Recently I've been thinking about how to transform a complex polygon into a non-complex polygon.  How is this done?</p>
  
  <p>This is the sort of thing I want to do:</p>
  
  <p><img src="https://i.stack.imgur.com/fxrlu.png" alt="Example"></p>
  
  <p>I'm going to end up with JavaScript when I'm done, but any form of a solution is fine (language, algorithm, or just plain English).</p>