public static Coordinate [ ] deepCopyCoordinates ( Coordinate [ ] coordinatesOriginal ) { if ( coordinatesOriginal != null ) { Coordinate [ ] copy = new Coordinate [ coordinatesOriginal . length ] ; for ( int i = 0 ; i < coordinatesOriginal . length ; i ++ ) { copy [ i ] = deepCopyCoordinate ( coordinatesOriginal [ i ] ) ; } return copy ; } return null ; }
Copy values of array of coordinates to new array .