summaryrefslogtreecommitdiffstats
path: root/kd-forest.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-08-03 14:17:00 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-08-04 12:22:37 -0400
commit2fb8418db686e1bf7d41d091054a5d01f0e37324 (patch)
tree4094016e8ce2acd5839bdd43b017094a65297000 /kd-forest.h
parentab9c63852d53a6991ccbab6111645d949909ba04 (diff)
downloadkd-forest-2fb8418db686e1bf7d41d091054a5d01f0e37324.tar.xz
Clean up and correct nearest-neighbor algorithm.
Diffstat (limited to 'kd-forest.h')
-rw-r--r--kd-forest.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kd-forest.h b/kd-forest.h
index 4cf5750..3607903 100644
--- a/kd-forest.h
+++ b/kd-forest.h
@@ -51,6 +51,6 @@ void kdf_init(kd_forest_t *kdf);
void kdf_destroy(kd_forest_t *kdf);
void kdf_insert(kd_forest_t *kdf, kd_node_t *node);
void kdf_remove(kd_forest_t *kdf, kd_node_t *node);
-kd_node_t *kdf_find_nearest(kd_forest_t *kdf, const kd_node_t *target);
+kd_node_t *kdf_find_nearest(kd_forest_t *kdf, double target[KD_DIMEN]);
#endif // KD_FOREST_H