public class FastSegmentSetIntersectionFinder extends Object
SegmentStrings intersect. Uses indexing for fast performance and to optimize repeated tests against a target set of lines. Short-circuited to return as soon an intersection is found. Immutable and thread-safe.
| Constructor and Description |
|---|
FastSegmentSetIntersectionFinder(Collection
Creates an intersection finder against a given set of segment strings.
|
| Modifier and Type | Method and Description |
|---|---|
SegmentSetMutualIntersector |
getSegmentSetIntersector()
Gets the segment set intersector used by this class.
|
boolean |
intersects(Collection
Tests for intersections with a given set of target
SegmentStrings.
|
boolean |
intersects(Collection
Tests for intersections with a given set of target
SegmentStrings.
|
public FastSegmentSetIntersectionFinder(CollectionbaseSegStrings)
baseSegStrings - the segment strings to search for intersections
public SegmentSetMutualIntersectorgetSegmentSetIntersector()
public boolean intersects(CollectionsegStrings)
SegmentStrings.
segStrings - the SegmentStrings to test
public boolean intersects(CollectionsegStrings, SegmentIntersectionDetector intDetector)
SegmentStrings. using a given SegmentIntersectionDetector.
segStrings - the SegmentStrings to test
intDetector - the intersection detector to use