title: For a point in an irregular polygon, what is the most efficient way to select the edge closest to the point?
body: <p>Given an irregular polygon and a point within that polygon, how do I determine which edge in the polygon is closest to the point?</p>
  
  <p><img src="https://i.stack.imgur.com/3bt3B.png" alt="Example"></p>
  
  <p>I will likely have to run this calculation for a large set of points within the polygon (e.g. 50-200 points).</p>