scrollWithIndex static method

void scrollWithIndex(
  1. CoordinateSequence seq,
  2. int indexOfFirstCoordinate
)

Shifts the positions of the coordinates until the coordinate at firstCoordinateIndex is first.

@param seq the coordinate sequence to rearrange @param indexOfFirstCoordinate the index of the coordinate to make first

Implementation

static void scrollWithIndex(
    CoordinateSequence seq, int indexOfFirstCoordinate) {
  scrollWithIndexAndRingcheck(
      seq, indexOfFirstCoordinate, CoordinateSequences.isRing(seq));
}