copy static method
Copies a section of a {@link CoordinateSequence} to another {@link CoordinateSequence}. The sequences may have different dimensions; in this case only the common dimensions are copied.
@param src the sequence to copy from @param srcPos the position in the source sequence to start copying at @param dest the sequence to copy to @param destPos the position in the destination sequence to copy to @param length the number of coordinates to copy
Implementation
static void copy(CoordinateSequence src, int srcPos, CoordinateSequence dest,
int destPos, int length) {
for (int i = 0; i < length; i++) {
copyCoord(src, srcPos + i, dest, destPos + i);
}
}