title: JS SVG getCTM and setCTM?
body: <p>If I use getCTM() to get the current tranformation matrix, how do I use that object to set the matrix if I want to restore it at a later point (I know about save and restore but those refer to the canvas and not items)</p>
  
  <p>I know I set the attribute:</p>
  
  <pre><code>var m = someitem.getCTM();
  $(someitem).attr("transform", "matrix("+m.a+","+m.b+","+m.c+","+ m.d+","+m.e+","+m.f+")");
  </code></pre>
  
  <p>But that seems sort of a long way of doing it. I can't find a setCTM function of any such close function.</p>
  
  <p>Developing for webkit if that makes a difference.</p>
  
  <p>Thanks!</p>