}
/* findClosestActiveNode:
- * Find
+ *
*/
static double
findClosestActiveNode(Hierarchy * hierarchy, int node,
double min_dist = 1e20;
for (i = 0; i < hierarchy->nvtxs[top_level]; i++) {
- findClosestActiveNode(hierarchy, i, top_level, x, y, min_dist,
- &closest_node, &closest_node_level);
+ min_dist = findClosestActiveNode(hierarchy, i, top_level, x, y,
+ min_dist, &closest_node, &closest_node_level);
}
*closest_fine_node =
find_leftmost_descendant(hierarchy, closest_node,