UNPKG

@thi.ng/grid-iterators

Version:

2D grid and shape iterators w/ multiple orderings

18 lines 483 B
import type { GridCoord2D } from "./api.js"; /** * Returns true if x,y is on a right-to-left diagonal with spacing `n`. * * @param x * @param y * @param n */ export declare const isOnDiagonal: ([x, y]: GridCoord2D, n: number) => boolean; /** * Returns true if x,y is on a left-to-right diagonal with spacing `n`. * * @param x * @param y * @param n */ export declare const isOnDiagonalAlt: ([x, y]: GridCoord2D, N: number) => boolean; //# sourceMappingURL=filters.d.ts.map