public class FastSegmentSetIntersectionFinder extends Object
SegmentString
s 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 baseSegStrings)
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 segStrings)
Tests for intersections with a given set of target
SegmentString s. |
boolean |
intersects(Collection segStrings,
SegmentIntersectionDetector intDetector)
Tests for intersections with a given set of target
SegmentString s. |
public FastSegmentSetIntersectionFinder(Collection baseSegStrings)
baseSegStrings
- the segment strings to search for intersectionspublic SegmentSetMutualIntersector getSegmentSetIntersector()
public boolean intersects(Collection segStrings)
SegmentString
s.segStrings
- the SegmentStrings to testpublic boolean intersects(Collection segStrings, SegmentIntersectionDetector intDetector)
SegmentString
s.
using a given SegmentIntersectionDetector.segStrings
- the SegmentStrings to testintDetector
- the intersection detector to useCopyright © 2022. All rights reserved.