@thi.ng/grid-iterators
Version:
2D grid and shape iterators w/ multiple orderings
12 lines • 532 B
TypeScript
import type { GridIterOpts2D } from "./api.js";
/**
* Yields sequence of 2D grid coordinates along 2D Hilbert curve using given
* `cols` and `rows` (each max. 32768 (2^15)).
*
* Ported & modified from original Java code by Christopher Kulla.
* https://sourceforge.net/p/sunflow/code/HEAD/tree/trunk/src/org/sunflow/core/bucket/HilbertBucketOrder.java
*
* @param opts -
*/
export declare function hilbert2d(opts: GridIterOpts2D): Generator<import("./api.js").GridCoord2D, void, unknown>;
//# sourceMappingURL=hilbert.d.ts.map