title: Get starting point and ending point of a line in EaselJS
body: <p>Is it possible to retrieve these points from a drawn line? The <a href="http://www.createjs.com/Docs/EaselJS/classes/Graphics.html" rel="nofollow">API</a> didn't really help me.</p>
  
  <pre><code>var line = new createjs.Graphics();
  line.beginStroke( 'black' );
  line.moveTo( 0, 0 );
  line.lineTo( 100, 100 );
  </code></pre>
  
  <p>Right now I'm creating an instance of the Point class and use the coordinates as parameters.</p>
  
  <pre><code>var point1 = new Point(0, 0);
  var point2 = new Point(100, 100);
  
  var line = new createjs.Graphics();
  line.beginStroke( 'black' );
  line.moveTo( point1.x, point1.y );
  line.lineTo( point2.x, point2.y );
  </code></pre>