What if I have 2 line segments that is defined by two starting and ending points such as below:
line segment 1 starts [0,0] and ends at [5,0] another line segment 2 starts at [3,0] and ends at [8,0]
How do I check that line segment 2 extends out of line segment 2 and also if the two line segments aren't necessarily horizontal nor vertical but at a slope? Is there a generalized code for that? Thank you in advance.