title: Given a list of GPS coordinates making up a boundary, how can I calculate if my location is within that boundary?
body: <p>Suppose I have hundreds, or even thousands of GPS coords, Latitude and Longitude that make up a boundary around a country.</p>
  
  <p>I also have my current position Latitude and Longitude.</p>
  
  <p>How can I determine (using C#, programming for Windows10 UWP) if my position is within the boundary of a country?</p>
  
  <p>E.G. Suppose I have all the points that make up red line in the image below. If I was at the X location, my function would return true. If I were at the Y location, my function would return false.</p>
  
  <p><a href="https://i.stack.imgur.com/RRoTW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RRoTW.png" alt="MapExample"></a></p>