title: How to find out the coordinates of rotated textframe
body: <p>With the help of (idml) itemtransform horizontal / vertical distances and path point arrays, I can find out the coordinates of text frame (x1,y1), (x2,y2), (x3,y3), (x4,y4). If the textframe is rotated then item transform values are getting changed, but the path point array values are same. I can find rotation angle by the matrix [cos(θ) sin(θ) -sin(θ) cos(θ) 0 0], But I could not get the exact coordinates of rotated textframe. The textframes are given below.</p>
  
  <p>Normal Text frame</p>
  
  <pre><code>  &lt;TextFrame Self="u136" ParentStory="u124" ItemTransform="1 0 0 1 101.72727272727272 -349.41818181818184"&gt;
          &lt;Properties&gt;
              &lt;PathGeometry&gt;
                  &lt;GeometryPathType PathOpen="false"&gt;
                      &lt;PathPointArray&gt;
                          &lt;PathPointType Anchor="-101.72727272727272 -46.581818181818164" LeftDirection="-101.72727272727272 -46.581818181818164" RightDirection="-101.72727272727272 -46.581818181818164"/&gt;
                          &lt;PathPointType Anchor="-101.72727272727272 -0.3272727272727103" LeftDirection="-101.72727272727272 -0.3272727272727103" RightDirection="-101.72727272727272 -0.3272727272727103"/&gt;
                          &lt;PathPointType Anchor="115.9090909090909 -0.3272727272727103" LeftDirection="115.9090909090909 -0.3272727272727103" RightDirection="115.9090909090909 -0.3272727272727103"/&gt;
                          &lt;PathPointType Anchor="115.9090909090909 -46.581818181818164" LeftDirection="115.9090909090909 -46.581818181818164" RightDirection="115.9090909090909 -46.581818181818164"/&gt;
                      &lt;/PathPointArray&gt;
                  &lt;/GeometryPathType&gt;
              &lt;/PathGeometry&gt;
          &lt;/Properties&gt;         
  </code></pre>
  
  <p></p>
  
  <p>Rotated textframe</p>
  
  <pre><code> &lt;TextFrame Self="u136" ParentStory="u124" ItemTransform="0 1 -1 0 320.3805483338268 -125.07900895050204"&gt;
          &lt;Properties&gt;
              &lt;PathGeometry&gt;
                  &lt;GeometryPathType PathOpen="false"&gt;
                      &lt;PathPointArray&gt;
                          &lt;PathPointType Anchor="-101.72727272727272 -46.581818181818164" LeftDirection="-101.72727272727272 -46.581818181818164" RightDirection="-101.72727272727272 -46.581818181818164"/&gt;
                          &lt;PathPointType Anchor="-101.72727272727272 -0.3272727272727103" LeftDirection="-101.72727272727272 -0.3272727272727103" RightDirection="-101.72727272727272 -0.3272727272727103"/&gt;
                          &lt;PathPointType Anchor="115.9090909090909 -0.3272727272727103" LeftDirection="115.9090909090909 -0.3272727272727103" RightDirection="115.9090909090909 -0.3272727272727103"/&gt;
                          &lt;PathPointType Anchor="115.9090909090909 -46.581818181818164" LeftDirection="115.9090909090909 -46.581818181818164" RightDirection="115.9090909090909 -46.581818181818164"/&gt;
                      &lt;/PathPointArray&gt;
                  &lt;/GeometryPathType&gt;
              &lt;/PathGeometry&gt;
          &lt;/Properties&gt;        
  </code></pre>
  
  <p></p>
  
  <p>When I converted the values of rotated textframe in to coordinates and drawn in a screen then  I am not getting the exact position where it drawn in the original.</p>
  
  <p>Can anyone help me to find out the cordinates of rotated textframe.</p>
  
  <p>Thanks in advance.</p>