@thi.ng/geom-accel
Version:
n-D spatial indexing data structures with a shared ES6 Map/Set-like API
11 lines • 575 B
TypeScript
import type { Fn, Pair } from "@thi.ng/api";
import type { ReadonlyVec } from "@thi.ng/vectors";
import { ASpatialGrid } from "./aspatial-grid.js";
export declare class SpatialGrid2<K extends ReadonlyVec, V> extends ASpatialGrid<K, V> {
constructor(min: ReadonlyVec, size: ReadonlyVec, res: ReadonlyVec | number);
copy(): SpatialGrid2<K, V>;
empty(): SpatialGrid2<K, V>;
protected doQuery<T>(fn: Fn<Pair<K, V>, T>, k: K, r: number, limit?: number, acc?: T[]): T[];
protected findIndex(k: ReadonlyVec): number;
}
//# sourceMappingURL=spatial-grid2.d.ts.map