set method

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

Implementation

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