com.vividsolutions.jts.operation.predicate

Class SegmentIntersectionTester


public class SegmentIntersectionTester
extends java.lang.Object

Tests if any line segments in two sets of CoordinateSequences intersect. Optimized for small geometry size. Short-circuited to return as soon an intersection is found.
Version:
1.6

Constructor Summary

SegmentIntersectionTester()

Method Summary

boolean
hasIntersection(CoordinateSequence seq0, CoordinateSequence seq1)
boolean
hasIntersectionWithLineStrings(CoordinateSequence seq, List lines)

Constructor Details

SegmentIntersectionTester

public SegmentIntersectionTester()

Method Details

hasIntersection

public boolean hasIntersection(CoordinateSequence seq0,
                               CoordinateSequence seq1)

hasIntersectionWithLineStrings

public boolean hasIntersectionWithLineStrings(CoordinateSequence seq,
                                              List lines)