I would like to ask whether there is a known way of finding the intersection of 2 vectors/segments. Suppose that you have a segment a consisting of 2 points: A[1,2], B[3,4] and a segment w consisting of: W[5,1], Q[2,3]
For example, if we have 2 segments, both given by 2 points:
AB: A[1,1], B[3,3]
CD: C[1,4], D[5,4]
They have no intersection but if we took into account the lines they form, they would have an intersection. I am asking about analytic solution for segments. Are there any formulas for this?
Thank you