get method

T get(
  1. int x,
  2. int y
)

Gets the element in the array at x, y.

Implementation

T get(int x, int y) {
  _checkBounds(x, y);
  return _elements[y * width + x];
}