reverse static method
Reverses the coordinates in a sequence in-place.
Implementation
static void reverse(CoordinateSequence seq) {
int last = seq.size() - 1;
int mid = last ~/ 2;
for (int i = 0; i <= mid; i++) {
swap(seq, i, last - i);
}
}