<?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: Unity, MoveGeodetic and ArcGISMutableArray? in ArcGIS Maps SDK for Unity Questions</title>
    <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/unity-movegeodetic-and-arcgismutablearray/m-p/1374875#M766</link>
    <description>&lt;P&gt;Hello, I am struggling to construct an ArcGISMutableArray as well.&amp;nbsp; Searched through the sample projects but no luck.&lt;/P&gt;&lt;P&gt;Did you find a solution?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jan 2024 16:28:52 GMT</pubDate>
    <dc:creator>TobyAmbrose</dc:creator>
    <dc:date>2024-01-26T16:28:52Z</dc:date>
    <item>
      <title>Unity, MoveGeodetic and ArcGISMutableArray?</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/unity-movegeodetic-and-arcgismutablearray/m-p/1334259#M661</link>
      <description>&lt;P&gt;I'm trying to do some offset of a point but I want to do it in meters, I found out there is the Geometry Engine for that but I noticed in the Unity SDK it's weird how it's supposed to be called. From what I've seen in any other SDK the input is a simple array but here it's a Mutable Array and I cannot find any way to populate it&lt;/P&gt;&lt;P&gt;It kinda looks that &lt;FONT face="andale mono,times"&gt;&lt;SPAN&gt;ArcGISMutableArray&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;it's missing a Builder (just like the one present in the Immutable version&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="andale mono,times"&gt;&lt;SPAN&gt;static ArcGISImmutableArray&amp;lt;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/unity/api-reference/gameengine/geometry/arcgispoint/" target="_blank" rel="noopener"&gt;ArcGISPoint&lt;/A&gt;&lt;SPAN&gt;&amp;gt; MoveGeodetic(ArcGISMutableArray&amp;lt;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/unity/api-reference/gameengine/geometry/arcgispoint/" target="_blank" rel="noopener"&gt;ArcGISPoint&lt;/A&gt;&lt;SPAN&gt;&amp;gt; pointCollection,&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://docs.microsoft.com/en-us/dotnet/api/system.double?view=netstandard-2.0" target="_blank" rel="noopener"&gt;double&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;distance,&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/unity/api-reference/gameengine/geometry/arcgislinearunit/" target="_blank" rel="noopener"&gt;ArcGISLinearUnit&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;distanceUnit,&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://docs.microsoft.com/en-us/dotnet/api/system.double?view=netstandard-2.0" target="_blank" rel="noopener"&gt;double&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;azimuth,&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/unity/api-reference/gameengine/geometry/arcgisangularunit/" target="_blank" rel="noopener"&gt;ArcGISAngularUnit&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;azimuthUnit,&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/unity/api-reference/gameengine/geometry/arcgisgeodeticcurvetype/" target="_blank" rel="noopener"&gt;ArcGISGeodeticCurveType&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;curveType)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/unity/api-reference/gameengine/geometry/arcgisgeometryengine/#movegeodetic" target="_self"&gt;https://developers.arcgis.com/unity/api-reference/gameengine/geometry/arcgisgeometryengine/#movegeodetic&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;more context:&lt;/P&gt;&lt;P&gt;I have one of the ArcGISExtent, with a center point and shape dimension defined in meters. I want to get the Location Coordinate of the corners. It's not just adding the meters offset coz those are different measurments. ¿Maybe there is an alternative for moving a point in meters of getting a coordinate with a meters offset or something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 19:22:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/unity-movegeodetic-and-arcgismutablearray/m-p/1334259#M661</guid>
      <dc:creator>PacoEnGlobant</dc:creator>
      <dc:date>2023-10-02T19:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Unity, MoveGeodetic and ArcGISMutableArray?</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/unity-movegeodetic-and-arcgismutablearray/m-p/1374875#M766</link>
      <description>&lt;P&gt;Hello, I am struggling to construct an ArcGISMutableArray as well.&amp;nbsp; Searched through the sample projects but no luck.&lt;/P&gt;&lt;P&gt;Did you find a solution?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 16:28:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/unity-movegeodetic-and-arcgismutablearray/m-p/1374875#M766</guid>
      <dc:creator>TobyAmbrose</dc:creator>
      <dc:date>2024-01-26T16:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unity, MoveGeodetic and ArcGISMutableArray?</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/unity-movegeodetic-and-arcgismutablearray/m-p/1393477#M791</link>
      <description>&lt;P&gt;I figured out an alternative to MoveGeodetic, though it is likely less robust.&lt;/P&gt;&lt;P&gt;If you convert the point to game space first, add your offset, then convert back into an ArcGISPoint, it should achieve the desired effect since Unity uses meters as it's base unit.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public ArcGISPoint MovePointByMeters(ArcGISMapComponent map, ArcGISPoint point, Vector3 move){
    var unityPoint = map.GeographicToEngine(point);
    unityPoint += move;
    
    return map.EngineToGeographic(unityPoint);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 21:55:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/unity-movegeodetic-and-arcgismutablearray/m-p/1393477#M791</guid>
      <dc:creator>MBambino_ATS</dc:creator>
      <dc:date>2024-03-08T21:55:38Z</dc:date>
    </item>
  </channel>
</rss>

