An algorithm for counting line segments intersections using planar partitions | IEEE Conference Publication | IEEE Xplore