title: How to draw a line with a direction and a fixed length
body: <p>I want a line to be drawn till the edge of the screen when I provide to it 2 points and an angle (for the direction). For example if the first mouse point is 4,4 and the next mouse point is 6,6 so from those points you know that the line has a North-East direction, then a line should be drawn from 4,4 till the end of the screen and passing through 6,6. Note: after the mouse gets to 6,6 the line should be drawn till the edge of the screen while the mouse is still at 6,6. </p>
  
  <p><a href="https://i.stack.imgur.com/5eQqB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5eQqB.png" alt="enter image description here"></a></p>
  
  <p>Also this should be done in MouseMoved with no clicks preferably, this means that both mouse points are obtained from MouseMoved. I tried for a whole day to get an output but no use.</p>