geokdtree.cpp
KD-Tree implementation for efficient nearest neighbor search
class
ClosestPointResult:
class
ClosestIdxResult:
class
KDTree:
class
GeoKDTree:
GeoKDTree()
__init__(self, points: collections.abc.Sequence[tuple[float, float]]) -> None
Build a geographic KD-Tree from a list of (latitude, longitude) pairs
def
closest_idx(unknown):
closest_idx(self, point: tuple[float, float]) -> int
Find the index of the closest point to the given (lat, lon) pair
squared_distance =
<nanobind.nb_func object>
squared_distance_3d =
<nanobind.nb_func object>
lat_lon_idx_to_xyz_idx =
<nanobind.nb_func object>