set method

void set(
  1. int x,
  2. int y,
  3. T value
)

Sets the element in the array at x, y to value.

Implementation

void set(int x, int y, T value) {
  _checkBounds(x, y);
  _elements[y * width + x] = value;
}