Class FastSegmentSetIntersectionFinder
Finds if two sets of ISegmentStrings intersect.
Inherited Members
Namespace: NetTopologySuite.Noding
Assembly: NetTopologySuite.dll
Syntax
public class FastSegmentSetIntersectionFinder
Remarks
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.
Constructors
| Improve this Doc View SourceFastSegmentSetIntersectionFinder(IEnumerable<ISegmentString>)
Creates an intersection finder against a given set of segment strings.
Declaration
public FastSegmentSetIntersectionFinder(IEnumerable<ISegmentString> baseSegStrings)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<ISegmentString> | baseSegStrings | The segment strings to search for intersections |
Properties
| Improve this Doc View SourceSegmentSetIntersector
Gets the segment set intersector used by this class.
Declaration
public ISegmentSetMutualIntersector SegmentSetIntersector { get; }
Property Value
Type | Description |
---|---|
ISegmentSetMutualIntersector |
Remarks
This allows other uses of the same underlying indexed structure.
Methods
| Improve this Doc View SourceIntersects(IList<ISegmentString>)
Tests for intersections with a given set of target ISegmentStrings.
Declaration
public bool Intersects(IList<ISegmentString> segStrings)
Parameters
Type | Name | Description |
---|---|---|
IList<ISegmentString> | segStrings | The SegmentStrings to test |
Returns
Type | Description |
---|---|
Boolean |
|
Intersects(IList<ISegmentString>, SegmentIntersectionDetector)
Tests for intersections with a given set of target ISegmentStrings. using a given SegmentIntersectionDetector.
Declaration
public bool Intersects(IList<ISegmentString> segStrings, SegmentIntersectionDetector intDetector)
Parameters
Type | Name | Description |
---|---|---|
IList<ISegmentString> | segStrings | The SegmentStrings to test |
SegmentIntersectionDetector | intDetector | The intersection detector to use |
Returns
Type | Description |
---|---|
Boolean |
|