set method

void set(
  1. int x,
  2. int y,
  3. double v
)

Implementation

void set(int x, int y, double v) =>
    cache[((y % height) * width) + (x % width)] = v;