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