Skip to main content

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

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

Returns

boolean

Whether to include the candidate in the final search results.