<?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 Angle between two points in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/angle-between-two-points/m-p/806479#M2199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is best way to determine angle between two mappoints?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Aug 2015 14:06:11 GMT</pubDate>
    <dc:creator>mikeharol1</dc:creator>
    <dc:date>2015-08-25T14:06:11Z</dc:date>
    <item>
      <title>Angle between two points</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/angle-between-two-points/m-p/806479#M2199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is best way to determine angle between two mappoints?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 14:06:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/angle-between-two-points/m-p/806479#M2199</guid>
      <dc:creator>mikeharol1</dc:creator>
      <dc:date>2015-08-25T14:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Angle between two points</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/angle-between-two-points/m-p/806480#M2200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are probably a number of approaches. I suggest using a LineBuilder to create a LineSegment using the two points as the start and the end point. The created segment in return contains an angle property. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic7741.html" rel="nofollow" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic7741.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 14:25:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/angle-between-two-points/m-p/806480#M2200</guid>
      <dc:creator>ThomasEmge</dc:creator>
      <dc:date>2015-08-25T14:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Angle between two points</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/angle-between-two-points/m-p/806481#M2201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alternatively, you may take a look at the Near Tool as well as the Generate Near Table Tool. Each allow you to generate the angle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 16:24:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/angle-between-two-points/m-p/806481#M2201</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2015-08-25T16:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Angle between two points</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/angle-between-two-points/m-p/806482#M2202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so i think like the linesegment approach but it returns the angle relative to x axis going counter clockwise as opposed to the preferable gis coordinate system starting at y axis in a clockwise direction.&amp;nbsp; so if the lineSegment.angle returns 30 degrees that would actually be 60 degrees on the compass.&amp;nbsp;&amp;nbsp; Is there a method or technique to make the conversion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 18:24:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/angle-between-two-points/m-p/806482#M2202</guid>
      <dc:creator>mikeharol1</dc:creator>
      <dc:date>2015-08-25T18:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Angle between two points</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/angle-between-two-points/m-p/806483#M2203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this seems to work for me thanks for help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;double&lt;/SPAN&gt; Rad2Degrees = 180 / &lt;SPAN style="color: #2b91af;"&gt;Math&lt;/SPAN&gt;.PI;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;var&lt;/SPAN&gt; lineBuilder = &lt;SPAN style="color: blue;"&gt;new&lt;/SPAN&gt; &lt;SPAN style="color: #2b91af;"&gt;LineBuilder&lt;/SPAN&gt;(p1, p2);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;var&lt;/SPAN&gt; lineSeg = lineBuilder.ToSegment();&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;var&lt;/SPAN&gt; degrees = lineSeg.Angle * Rad2Degrees;&lt;/P&gt;&lt;P&gt;degrees = 90 - degrees;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;if&lt;/SPAN&gt; (degrees &amp;lt; 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; degrees = degrees + 360;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 18:42:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/angle-between-two-points/m-p/806483#M2203</guid>
      <dc:creator>mikeharol1</dc:creator>
      <dc:date>2015-08-25T18:42:50Z</dc:date>
    </item>
  </channel>
</rss>

