def segments_overlapping(ab, cd):
(a,b) = ab<EOL>(c,d) = cd<EOL>ss = [point_in_segment(ab, c), point_in_segment(ab, d),<EOL>point_in_segment(cd, a), point_in_segment(cd, b)]<EOL>return (~(points_close(a,b) | points_close(c,d)) & <EOL>((np.sum(ss, axis=<NUM_LIT:0>) > <NUM_LIT:1>) |<EOL>(points_close(a,c) & points_close(b,d)) |<EOL>(points_close(a,d) & points_close(b,c))))<EOL>
segments_overlapping((a, b), (c, d)) yields True if the line segments (a,b) and (c,d) are both
colinear and have a non-finite overlap. If (a,b) and (c,d) touch at a single point, they are not
considered overlapping.