I am using Polyline to draw a line to the screen. What i want to do is plot 2 points, for example, the user would click at one point on the screen, then at another spot on the screen. i would like to draw from the first point to the second point, but instead of stopping at the second point, continue drawing a line to the end of the screen along the same direction as the 2 points that were plotted


drawing a straight horizontal line or vertical line would be easy to continue on because you just increase the size of the x or y respectively, but what about when its diagonal?

I hope this was clear...