Given two lines of which we know the starting XY points and intersecting point, I need to find which line is left and which line is right. The lines are always crossing and can be turned in any direction. Here are 4 possible scenarios as an image where A is always on the left line:
Below are the same four scenarios as data, where every scenario has two crossing lines. Each line has a start point (x, y) and an end (x, y) point. In the scenarios below, the starting point of A is always on the left of the starting point B and therefore lineA is on the left of lineB:
line_A1 = ((1, 1), (0, 0))
line_B1 = ((0, 1), (1, 0))
line_A2 = ((0, 1), (1, 0))
line_B2 = ((0, 0), (1, 1))
line_A3 = ((0, 0), (1, 1))
line_B3 = ((1, 0), (0, 1))
line_A4 = ((1, 0), (0, 1))
line_B4 = ((1, 1), (0, 0))
middlepoint_C = (0.5, 0.5) #The middle point in all 4 scenarios is (0.5, 0.5)
How can we determine left and right side of the crossing lines in the four scenarios above?
Preference for solution would be with built in Python modules or shapely, but all solutions are welcome since we are kinda stuck.