2.2 lines: non-intersecting lines

using an intersection test on top of the distance function to join the dots