UNPKG

@thi.ng/grid-iterators

Version:

2D grid and shape iterators w/ multiple orderings

9 lines 391 B
import type { GridIterOpts2D } from "./api.js"; /** * Similar to {@link diagonal2d}, but yields 2D grid coordinates in zigzag * diagonal order starting at `[0,0]` and using given `cols` and `rows`. * * @param opts - */ export declare function zigzagDiagonal2d(opts: GridIterOpts2D): Generator<import("./api.js").GridCoord2D, void, unknown>; //# sourceMappingURL=zigzag-diagonal.d.ts.map