getCoordinateCopy method

Coordinate getCoordinateCopy(
  1. int i
)
override

Get a copy of the Coordinate with index i.

@param i the index of the coordinate @return a copy of the requested Coordinate

Implementation

Coordinate getCoordinateCopy(int i) {
  Coordinate copy = createCoordinate();
  copy.setCoordinate(coordinates![i]);
  return copy;
}