UNPKG

@thi.ng/geom-accel

Version:

n-D spatial indexing data structures with a shared ES6 Map/Set-like API

12 lines 611 B
import type { Fn, Pair } from "@thi.ng/api"; import type { ReadonlyVec } from "@thi.ng/vectors"; import { ASpatialGrid } from "./aspatial-grid.js"; export declare class SpatialGrid3<K extends ReadonlyVec, V> extends ASpatialGrid<K, V> { protected _stride: ReadonlyVec; constructor(min: ReadonlyVec, size: ReadonlyVec, res: ReadonlyVec | number); copy(): SpatialGrid3<K, V>; empty(): SpatialGrid3<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-grid3.d.ts.map