Tom is a flatlander, meaning he can only see in a line. In front of him are a bunch of lines (they never cross). Is there a way based on Tom's position and the line endpoints to calculate which lines he sees first (overlap from his perspective) and which he sees last? (assuming he has unlimited 360° vision)
In this example AB, CD,EF,GH
By seeing first I mean that if they overlap from toms perspective and assuming they all had a unique color, the color that tom sees at the overlapping area determines which line is "in front". If 2 lines don't overlap from his perspective it doesn't really matter which comes first. Also we are always looking at 2 lines in isolation, so it doesn't matter if a 3rd line covers both.
Another way to think about it, imagine that we wanted to paint what tom sees. There should be an order in which we paint the lines on top of each-other to recreate toms vision. We are essentially looking for the inverse of that order (first drawn last, last drawn first)
