GEOS
3.8.0
|
Finds all intersections in one or two sets of edges, using a simple x-axis sweepline algorithm. More...
#include <SimpleSweepLineIntersector.h>
Inherits geos::geomgraph::index::EdgeSetIntersector.
Public Member Functions | |
void | computeIntersections (std::vector< Edge * > *edges, SegmentIntersector *si, bool testAllSegments) override |
void | computeIntersections (std::vector< Edge * > *edges0, std::vector< Edge * > *edges1, SegmentIntersector *si) override |
Finds all intersections in one or two sets of edges, using a simple x-axis sweepline algorithm.
While still O(n^2) in the worst case, this algorithm drastically improves the average-case time.