title: Detecting collision on line
body: <p>How do I detect collision on line, preferably with mouse click?</p>
  
  <p>I don't use XNA. I use just simple WinForms. And I'm not creating a game.</p>
  
  <p>EDIT: I implemented solution from brone link and got really weird results. Here's small snippet. What I'm doing wrong? <a href="http://pastebin.com/m3bf3aeac" rel="nofollow noreferrer">Pastebin link</a></p>