add4 method
Adds a section of an array of coordinates to the list. @param coord The coordinates @param allowRepeated if set to false, repeated coordinates are collapsed @param start the index to start from @param end the index to add up to but not including @return true (as by general collection contract)
Implementation
bool add4(List<Coordinate> coord, bool allowRepeated, int start, int end) {
int inc = 1;
if (start > end) inc = -1;
for (int i = start; i != end; i += inc) {
addCoord(coord[i], allowRepeated);
}
return true;
}