UNPKG

@thi.ng/grid-iterators

Version:

2D grid and shape iterators w/ multiple orderings

12 lines 536 B
import type { GridIterOpts2D } from "./api.js"; /** * Yields sequence of 2D grid coordinates in zigzag column order starting from * `[0,0]`, given `cols` and `rows`. * * Ported & modified from original Java code by Christopher Kulla. * https://sourceforge.net/p/sunflow/code/HEAD/tree/trunk/src/org/sunflow/core/bucket/SpiralBucketOrder.java * * @param opts - */ export declare function zigzagColumns2d(opts: GridIterOpts2D): Generator<import("./api.js").GridCoord2D, void, unknown>; //# sourceMappingURL=zigzag-columns.d.ts.map