Skip to content

Instantly share code, notes, and snippets.

@dberlin
dberlin / main.cpp
Created February 4, 2016 23:15 — forked from leegao/main.cpp
quadtrees
// 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);