42 void kd_free(
struct kdtree *tree);
54 int kd_insert(
struct kdtree *tree,
const double *pos,
void *data);
55 int kd_insertf(
struct kdtree *tree,
const float *pos,
void *data);
56 int kd_insert3(
struct kdtree *tree,
double x,
double y,
double z,
void *data);
57 int kd_insert3f(
struct kdtree *tree,
float x,
float y,
float z,
void *data);
63 struct kdres *
kd_nearest(
struct kdtree *tree,
const double *pos);
64 struct kdres *
kd_nearestf(
struct kdtree *tree,
const float *pos);
65 struct kdres *
kd_nearest3(
struct kdtree *tree,
double x,
double y,
double z);
66 struct kdres *
kd_nearest3f(
struct kdtree *tree,
float x,
float y,
float z);
91 struct kdres *
kd_nearest_range(
struct kdtree *tree,
const double *pos,
double range);
92 struct kdres *
kd_nearest_rangef(
struct kdtree *tree,
const float *pos,
float range);
93 struct kdres *
kd_nearest_range3(
struct kdtree *tree,
double x,
double y,
double z,
double range);
94 struct kdres *
kd_nearest_range3f(
struct kdtree *tree,
float x,
float y,
float z,
float range);
96 struct kdres *
kd_region(
struct kdtree *kd,
const double *min,
const double *max);
120 void *
kd_res_item3(
struct kdres *set,
double *x,
double *y,
double *z);
121 void *
kd_res_item3f(
struct kdres *set,
float *x,
float *y,
float *z);
struct kdres * kd_nearest_rangef(struct kdtree *tree, const float *pos, float range)
void * kd_res_item3(struct kdres *set, double *x, double *y, double *z)
struct kdres * kd_nearest_range3f(struct kdtree *tree, float x, float y, float z, float range)
int kd_insert(struct kdtree *tree, const double *pos, void *data)
void * kd_res_item_data(struct kdres *set)
struct kdres * kd_nearest3f(struct kdtree *tree, float x, float y, float z)
int kd_res_end(struct kdres *set)
int kd_res_next(struct kdres *set)
void kd_clear(struct kdtree *tree)
int kd_res_size(struct kdres *set)
struct kdres * kd_nearest3(struct kdtree *tree, double x, double y, double z)
void * kd_res_item3f(struct kdres *set, float *x, float *y, float *z)
void kd_data_destructor(struct kdtree *tree, void(*destr)(void *))
struct kdres * kd_nearest_range3(struct kdtree *tree, double x, double y, double z, double range)
void * kd_res_itemf(struct kdres *set, float *pos)
int kd_insert3(struct kdtree *tree, double x, double y, double z, void *data)
struct kdres * kd_region(struct kdtree *kd, const double *min, const double *max)
void kd_res_rewind(struct kdres *set)
int kd_insert3f(struct kdtree *tree, float x, float y, float z, void *data)
struct kdres * kd_nearest_range(struct kdtree *tree, const double *pos, double range)
void * kd_res_item(struct kdres *set, double *pos)
struct kdres * kd_nearest(struct kdtree *tree, const double *pos)
void kd_free(struct kdtree *tree)
struct kdres * kd_nearestf(struct kdtree *tree, const float *pos)
struct kdtree * kd_create(int k)
void kd_res_free(struct kdres *set)
int kd_insertf(struct kdtree *tree, const float *pos, void *data)