<?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 Code for Rotation matrix (Account for DF rotation on Layout Element) in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/code-for-rotation-matrix-account-for-df-rotation/m-p/258652#M19902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a known page unit XY. What i need to do is figure out the rotation matrix code to apply the data frame rotation to my element page unit XY. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;At Data Frame rotation of&amp;nbsp; 0 rotation my point is X = 10.5659" and Y = 7.0324" and at Data Frame rotation of 12.14, my point is X = 10.6832" and Y = 7.481".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although, I may have better luck posting this in a numpy or python specific forum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Apr 2015 19:57:00 GMT</pubDate>
    <dc:creator>CarlSunderman</dc:creator>
    <dc:date>2015-04-08T19:57:00Z</dc:date>
    <item>
      <title>Code for Rotation matrix (Account for DF rotation on Layout Element)</title>
      <link>https://community.esri.com/t5/python-questions/code-for-rotation-matrix-account-for-df-rotation/m-p/258652#M19902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a known page unit XY. What i need to do is figure out the rotation matrix code to apply the data frame rotation to my element page unit XY. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;At Data Frame rotation of&amp;nbsp; 0 rotation my point is X = 10.5659" and Y = 7.0324" and at Data Frame rotation of 12.14, my point is X = 10.6832" and Y = 7.481".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although, I may have better luck posting this in a numpy or python specific forum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 19:57:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/code-for-rotation-matrix-account-for-df-rotation/m-p/258652#M19902</guid>
      <dc:creator>CarlSunderman</dc:creator>
      <dc:date>2015-04-08T19:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Code for Rotation matrix (Account for DF rotation on Layout Element)</title>
      <link>https://community.esri.com/t5/python-questions/code-for-rotation-matrix-account-for-df-rotation/m-p/258653#M19903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so to answer my own question, i figured it out. To do this, i stored the rotation value in a variable, then had to set the data frame rotation to 0. Calculate my page units XY from map units coordinates XY. Then I calculated&amp;nbsp; the new XY and applied the rotation. Worked perfectly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 11:51:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/code-for-rotation-matrix-account-for-df-rotation/m-p/258653#M19903</guid>
      <dc:creator>CarlSunderman</dc:creator>
      <dc:date>2015-04-22T11:51:48Z</dc:date>
    </item>
  </channel>
</rss>

