Class SegmentIntersectionTester



  • public class SegmentIntersectionTester
    extends Object
    Tests if any of the segments in a LineString intersect any segment in a set of LineStrings.

    The algorithm is optimized for use when the first input has smaller extent than the set of test lines. The code is short-circuited to return as soon an intersection is found.

    • Constructor Detail

      • SegmentIntersectionTester

        public SegmentIntersectionTester()
    • Method Detail

      • hasIntersectionWithLineStrings

        public boolean hasIntersectionWithLineStrings(LineString line,
                                                      List lines)