Working intersection testing of line segments.