copyDeep static method
Creates a deep copy of the argument {@link Coordinate} array.
@param coordinates an array of Coordinates @return a deep copy of the input
Implementation
static List<Coordinate> copyDeep(List<Coordinate> coordinates) {
List<Coordinate> copy = []; //..length = (coordinates.length);
for (int i = 0; i < coordinates.length; i++) {
copy.add(coordinates[i].copy());
// copy[i] = coordinates[i].copy();
}
return copy;
}