Type Alias: KdTreeSearchFilter()<T>
KdTreeSearchFilter<
T> = (element,key,distance,queryKey,queryElement) =>boolean
Defined in: src/sdk/utils/datastructures/KdTree.ts:24
A filtering function for k-d tree searches.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type | Description |
|---|---|---|
element | T | A candidate search result. |
key | ReadonlyFloat64Array | The key of the candidate search result. |
distance | number | The distance from the candidate search result's key to the query key. |
queryKey | ReadonlyFloat64Array | The query key. |
queryElement | T | undefined | The query element, or undefined if the search was initiated directly from a key. |
Returns
boolean
Whether to include the candidate in the final search results.