LinearLine Intersection Pts Calculation

drag on screen to add a new linear line. 
blue spots are intersection points (solved by simple math calculation)