copyCoord static method
Copies a coordinate 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 source coordinate to copy @param dest the sequence to copy to @param destPos the destination coordinate to copy to
Implementation
static void copyCoord(CoordinateSequence src, int srcPos,
CoordinateSequence dest, int destPos) {
int minDim = math.min(src.getDimension(), dest.getDimension());
for (int dim = 0; dim < minDim; dim++) {
dest.setOrdinate(destPos, dim, src.getOrdinate(srcPos, dim));
}
}