public class FastSegmentSetIntersectionFinder
extends java.lang.Object
SegmentStrings
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.Constructor and Description |
---|
FastSegmentSetIntersectionFinder(java.util.Collection baseSegStrings) |
Modifier and Type | Method and Description |
---|---|
SegmentSetMutualIntersector |
getSegmentSetIntersector()
Gets the segment set intersector used by this class.
|
boolean |
intersects(java.util.Collection segStrings) |
boolean |
intersects(java.util.Collection segStrings,
SegmentIntersectionDetector intDetector) |
public FastSegmentSetIntersectionFinder(java.util.Collection baseSegStrings)
public SegmentSetMutualIntersector getSegmentSetIntersector()
public boolean intersects(java.util.Collection segStrings)
public boolean intersects(java.util.Collection segStrings, SegmentIntersectionDetector intDetector)