checkIntersectionWithSegments method
Implementation
void checkIntersectionWithSegments(LineString testLine) {
CoordinateSequence seq1 = testLine.getCoordinateSequence();
for (int j = 1; j < seq1.size(); j++) {
seq1.getCoordinateInto(j - 1, p0);
seq1.getCoordinateInto(j, p1);
if (rectIntersector.intersects(p0, p1)) {
hasIntersection = true;
return;
}
}
}