Type Alias: GeoKdTreeSearchFilter()<T>
GeoKdTreeSearchFilter<
T> = (element,point,distance,queryPoint) =>boolean
Defined in: src/sdk/utils/datastructures/GeoKdTree.ts:23
A filtering function for k-d tree searches.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type | Description |
|---|---|---|
element | T | A candidate search result. |
point | ReadonlyFloat64Array | The location of the candidate search result, in cartesian form. |
distance | number | The great-circle distance, in great-arc radians, from the candidate search result to the query point. |
queryPoint | ReadonlyFloat64Array | The query point, in cartesian form. |
Returns
boolean
Whether to include the candidate in the final search results.