kd_tree() : root(NULL) { }
| 42 | node *root; |
| 43 | // kd_tree() : root(NULL) { } |
| 44 | kd_tree(vector<pt> pts) { |
| 45 | root = construct(pts, 0, (int)size(pts) - 1, 0); } |
| 46 | node* construct(vector<pt> &pts, int from, int to, int c) { |
| 47 | if (from > to) return NULL; |
| 48 | int mid = from + (to - from) / 2; |
nothing calls this directly
no outgoing calls
no test coverage detected