load method

  1. @override
void load(
  1. int index,
  2. Vector2 vector
)
override

Retrieves the vector at index and stores it in vector.

Implementation

@override
void load(int index, Vector2 vector) {
  final i = _vectorIndexToBufferIndex(index);
  vector.storage[0] = _buffer[i + 0];
  vector.storage[1] = _buffer[i + 1];
}