title: Getting a list of points on a path
body: <p>How could I  <em>access and enumerate</em> through control points and their coordinates in <strong>svg/snapsvg</strong> path?</p>
  
  <p>Something like:  </p>
  
  <pre><code> var myPath = s.path("M 18,0 4.5,9 13.5,9 9,18 0,36 18,36 36,0 z");
  
   myPath.attr("d").forEach(function(point)
   {
   console.log("x:"+point.x," y:"+point.y)
   }
  </code></pre>