scroll static method

void scroll(
  1. CoordinateSequence seq,
  2. Coordinate firstCoordinate
)

Shifts the positions of the coordinates until firstCoordinate is first.

@param seq the coordinate sequence to rearrange @param firstCoordinate the coordinate to make first

Implementation

static void scroll(CoordinateSequence seq, Coordinate firstCoordinate) {
  int i = indexOf(firstCoordinate, seq);
  if (i <= 0) return;
  scrollWithIndex(seq, i);
}