<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to detect a nearest co-ordinate from an array of co-ordinates ? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-detect-a-nearest-co-ordinate-from-an-array-of-co/m-p/4335869#M48612</link>
    <description>&lt;P&gt;If what wou need is to get the nearest vertex, you could loop through all vertex and get the lowest value of:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Math.Pow(vertex.X - coordinate.X, 2) + Math.Pow(vertex.Y - coordinate.Y, 2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The lowest value indicates the nearest vertex.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if you need the nearest point&amp;nbsp;to the polyline, you could use the "GetClosestPointTo" method of the polyline.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jul 2013 12:25:30 GMT</pubDate>
    <dc:creator>alberto_manero_geograma</dc:creator>
    <dc:date>2013-07-19T12:25:30Z</dc:date>
    <item>
      <title>How to detect a nearest co-ordinate from an array of co-ordinates ?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-detect-a-nearest-co-ordinate-from-an-array-of-co/m-p/4335676#M48611</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an array of co-ordinates (List A) from a polyline. I have one of the co-ordinate (B) from a polyline which is located around the array of co-ordinates of the other polyline (List &amp;nbsp;A).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to detect the co-ordinate in List A which is closest to co-ordinate (B).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Known co-ordinates would be,&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Array of co-ordinates&lt;/P&gt;&lt;P&gt;2. the &lt;SPAN&gt;reference&amp;nbsp;&lt;/SPAN&gt;co-ordinate.&lt;BR /&gt;&lt;BR /&gt;Can anyone help ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2013 07:01:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-detect-a-nearest-co-ordinate-from-an-array-of-co/m-p/4335676#M48611</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-19T07:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect a nearest co-ordinate from an array of co-ordinates ?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-detect-a-nearest-co-ordinate-from-an-array-of-co/m-p/4335869#M48612</link>
      <description>&lt;P&gt;If what wou need is to get the nearest vertex, you could loop through all vertex and get the lowest value of:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Math.Pow(vertex.X - coordinate.X, 2) + Math.Pow(vertex.Y - coordinate.Y, 2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The lowest value indicates the nearest vertex.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if you need the nearest point&amp;nbsp;to the polyline, you could use the "GetClosestPointTo" method of the polyline.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2013 12:25:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-detect-a-nearest-co-ordinate-from-an-array-of-co/m-p/4335869#M48612</guid>
      <dc:creator>alberto_manero_geograma</dc:creator>
      <dc:date>2013-07-19T12:25:30Z</dc:date>
    </item>
  </channel>
</rss>

