Line–line intersection

From Rosetta Code

Implement a method that takes as a parameter

  • starting point of line 1
  • point where the line 1 ends
  • starting point of line 2
  • point where line 2 ends


return : intersection point