26 #include "kd_search.h"
39 void ANNbd_shrink::ann_search(
ANNdist box_dist)
45 for (
int i = 0; i < n_bnds; i++) {
48 inner_dist = (
ANNdist) ANN_SUM(inner_dist, bnds[i].dist(
ANNkdQ));
51 if (inner_dist <= box_dist) {
52 child[
ANN_IN]->ann_search(inner_dist);
53 child[
ANN_OUT]->ann_search(box_dist);
56 child[
ANN_OUT]->ann_search(box_dist);
57 child[
ANN_IN]->ann_search(inner_dist);