This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// simple test run | |
#include "quadtree.h" | |
int main(){ | |
quadtree<int>* tree = new quadtree(rectangle(0, 0, 100, 100)); // initialize a quadtree occupying the square with size 100 | |
// blah blah tree->insert(integer, x, y); | |
// we need to get the list of all points in a particular region | |
std::list<qdatum<int>> list = tree->to_list(region); |