Skip to main content

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

ParameterTypeDescription
elementTA search result.
pointReadonlyFloat64ArrayThe location of the search result, in cartesian form.
distancenumberThe great-circle distance, in great-arc radians, from the search result to the query point.
queryPointReadonlyFloat64ArrayThe query point, in cartesian form.

Returns

boolean

Whether to continue the search.