title: An algorithm for inflating/deflating (offsetting, buffering) polygons
body: <p>How would I &quot;inflate&quot; a polygon? That is, I want to do something similar to this:</p>
  <p><img src="https://i.stack.imgur.com/GUzIo.gif" alt="alt text" /></p>
  <p>The requirement is that the new (inflated) polygon's edges/points are all at the same constant distance from the old (original) polygon's (on the example picture they are not, since then it would have to use arcs for inflated vertices, but let's forget about that for now ;) ).</p>
  <p>The mathematical term for what I'm looking for is actually <strong>inward/outward polygon offseting</strong>. +1 to balint for pointing this out. The alternative naming is <strong>polygon buffering</strong>.</p>
  <p><strong>Results of my search:</strong></p>
  <p>Here are some links:</p>
  <ul>
  <li><a href="http://fcacciola.50webs.com/Offseting%20Methods.htm" rel="noreferrer">A Survey of Polygon Offseting Strategies</a></li>
  <li><a href="http://groups.google.si/group/comp.graphics/browse_thread/thread/4799ab44d71f434e/e3ec0b40c231706c?hl=en&amp;ie=UTF-8&amp;q=offset+polygon&amp;pli=1" rel="noreferrer">Polygon offset, PROBLEM</a></li>
  <li><a href="https://geogra.uah.es/patxi/gisweb/BuffersModule/Buff_poly.htm" rel="noreferrer">Buffering Polygon Data</a></li>
  </ul>