Skip to content

Commit

Permalink
refactor(geom-api): update ISpatialAccel
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jan 24, 2019
1 parent 5c98ed7 commit 18ce6c9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/geom-api/src/accel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ import { Pair } from "@thi.ng/api";
export interface ISpatialAccel<K, V> {
add(p: K, v: V, eps?: number): boolean;
addAll(pairs: Iterable<Pair<K, V>>, eps?: number): boolean;
addKey(k: K, eps?: number): boolean;
addKeys(keys: Iterable<K>, eps?: number): boolean;
remove(p: K): boolean;

select(q: Readonly<K>, maxNum: number, maxDist?: number): Pair<K, V>[];
selectKeys(q: Readonly<K>, maxNum: number, maxDist?: number): K[];
has(k: K, eps?: number): boolean;
select(q: K, maxNum: number, maxDist?: number): Pair<K, V>[];
selectKeys(q: K, maxNum: number, maxDist?: number): K[];
}

0 comments on commit 18ce6c9

Please sign in to comment.