What is the most efficient algorithm to find intersection point between two lines?
You are given four points A, B , C , D. Find the intersection point between AB and CD. Optimize the algorithm as much as you can.
There are two approach for this, one is using dot product and another is using slope intercept form for line. which one is better.
This might sound a repeated question but what I want to ask is which approach is better and most efficient with better complexity.