reverse static method
Reverses the coordinates in an array in-place.
Implementation
static void reverse(List<Coordinate> coord) {
int last = coord.length - 1;
int mid = (last / 2).floor();
for (int i = 0; i <= mid; i++) {
Coordinate tmp = coord[i];
coord[i] = coord[last - i];
coord[last - i] = tmp;
}
}