3 #include "boundingbox.h"
25 double nwXIn,
double nwYIn,
26 double seXIn,
double seYIn);
75 std::vector<Particle*> nodeParticles;
int getIndex(Particle *particle)
Gets the index of a given Particle within a Quadtree.
Definition: quadtree.cpp:55
void clear()
Clears the Quadtree.
Definition: quadtree.cpp:32
std::vector< Particle * > * getPossibleColliders(std::vector< Particle * > *colliders, Particle *p)
Returns a vector of Particles that may be colliding with a given Particle.
Definition: quadtree.cpp:131
The Quadtree data structure used in QuadtreeAlgorithm.
Definition: quadtree.h:10
void split()
Splits the Quadtree into 4 quadrants.
Definition: quadtree.cpp:44
Definition: particle.h:12
Quadtree(int levelIn, double nwXIn, double nwYIn, double seXIn, double seYIn)
Constructs a Quadtree object.
Definition: quadtree.cpp:4
void insertToTree(Particle *particle)
Inserts a given Particle into a Quadtree.
Definition: quadtree.cpp:91