title: How to get the points (coordinates) on 2D Line?
body: <p>When I plot point1(p1) and point2(p2), the line between p1 and p2 is drawn. I wanna know a set of the points making the line. 
  For example, I wanna get x, y coordinates (as array type: x[], y[]). Is there any algorithms or code?</p>