title: How to find the Point in an array of points which is closest to another point
body: <p><code>PolygonPoints</code> is an array of points used to render a Polygon. I also have a LINQ function that returns the point closest to 0,0.</p>
  
  <p>How can I modify this LINQ funtion <strong>to return the x,y in the PolygonPoints array CLOSEST to the current mouse position</strong>? </p>
  
  <p>LINQ</p>
  
  <pre><code>    var PointClosestToZero = PolygonPoints.Aggregate(
      (minPoint, next) =&gt;
           (minPoint.X * minPoint.X + minPoint.Y * minPoint.Y)
           &lt; (next.X * next.X + next.Y * next.Y) ? minPoint : next);
  </code></pre>