title: svg transform matrix parser
body: <p>problem explain:
  transform = "matrix(cos(a), sin(a), -sin(a), cos(a), -x1cos(a)+y1sin(a)+x2, -x1sin(a)-y1cos(a)+y2)"
  can see <a href="http://www.w3.org/TR/SVG/coords.html#SkewXDefined" rel="nofollow">7.4 Coordinate system transformations</a><br>
  to be resolved:
  in my work,i must resolve to parse matrix
  example:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;svg width="800" height="500" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:PerfectSVG="http://www.perfectsvg.com/PerfectSVG" xml:space="preserve"&gt;
  &lt;defs&gt;
  &lt;symbol overflow="visible" id="symbol1" connectPoints="15 70 50 0 87 68"&gt;
  &lt;g&gt;
  &lt;line x1="300" y1="200" x2="309" y2="200" transform="matrix(1,0,0,1,0,0)" /&gt;
  &lt;line x1="311" y1="200" x2="320" y2="200" transform="matrix(1,0,0,1,0,0)" /&gt;
  &lt;line x1="300" y1="200" x2="304.75" y2="207.75" transform="matrix(1,0,0,1,0,0)" /&gt;
  &lt;line x1="315.75" y1="207" x2="320" y2="200" transform="matrix(1,0,0,1,0,0)" /&gt;
  &lt;line x1="309.25" y1="197.5" x2="309.25" y2="202.25" transform="matrix(1,0,0,1,0,0)"/&gt;
  &lt;line x1="311" y1="197.25" x2="311" y2="202.5" transform="matrix(1,0,0,1,0,0)"/&gt;
  &lt;line x1="313.75" y1="205.5" x2="318" y2="208.5" transform="matrix(1,0,0,1,0,0)"/&gt;
  &lt;line x1="302.75" y1="209.5" x2="307.25" y2="206" transform="matrix(1,0,0,1,0,0)"/&gt;
  &lt;line x1="303.75" y1="211" x2="308.25" y2="207.5" transform="matrix(1,0,0,1,0,0)"/&gt;
  &lt;line x1="306" y1="209.25" x2="310.25" y2="215.5" transform="matrix(1,0,0,1,0,0)"/&gt;
  &lt;line x1="312.75" y1="207.25" x2="317.25" y2="210.5" transform="matrix(1,0,0,1,0,0)"/&gt;
  &lt;line x1="310.25" y1="215.25" x2="314.5" y2="208.75" transform="matrix(1,0,0,1,0,0)"/&gt;
  &lt;/g&gt;
  &lt;/symbol&gt;&lt;/defs&gt;&lt;use xlink:href="#symbol1" transform="matrix(3.774,-2.246,2.246,3.774,-1562.468,-12.947)" stroke="#000000" fill="#FFFFFF" id="use3" stroke-width="0.2276867"/&gt;&lt;/svg&gt;
  </code></pre>
  
  <p>Now:
  i want to know In:transform="matrix(3.774,-2.246,2.246,3.774,-1562.468,-12.947)" out:(a:angle x1,y1:The original coordinates x2,y2:New coordinates) from the example </p>
  
  <p>who can give suggestions or Some reference materials</p>
  
  <p>tks.</p>