I'd like to know if a line segment intersects another, where the 2nd line segment will only be horizontal or vertical.
There are similar questions about general line segments, but this constraint may be able to reduce the computation required.
Ideally with only real numbers being used, not vectors. The inputs should be 8 numbers, being the 'x' and 'y' positions of the ends of the 2 lines. This is not homework.