/** * Tests whether a segment is in a section of a TaggedLineString * @param line * @param sectionIndex * @param seg * @return */ private static boolean isInLineSection( TaggedLineString line, int[] sectionIndex, TaggedLineSegment seg) { // not in this line if (seg.getParent() != line.getParent()) return false; int segIndex = seg.getIndex(); if (segIndex >= sectionIndex[0] && segIndex < sectionIndex[1]) return true; return false; }
/** * Tests whether a segment is in a section of a TaggedLineString * @param line * @param sectionIndex * @param seg * @return */ private static boolean isInLineSection( TaggedLineString line, int[] sectionIndex, TaggedLineSegment seg) { // not in this line if (seg.getParent() != line.getParent()) return false; int segIndex = seg.getIndex(); if (segIndex >= sectionIndex[0] && segIndex < sectionIndex[1]) return true; return false; }