A node for the quadtree. More...
#include <quadtree.h>
Public Member Functions | |
QuadNode (int e=-1) | |
Constructs a leaf. | |
QuadNode (QuadNode *a, QuadNode *b, QuadNode *c, QuadNode *d) | |
Construct an internal node. | |
~QuadNode () | |
Destructs the node and its children (if any) | |
bool | isLeaf () |
Provided for convenience. |
Public Attributes | |
int | elem |
If it's a leaf : the index of the element (else, -1) | |
QuadNode * | hl |
Else, it's an internal node : the pointer to the children (else, 0) | |
QuadNode * | hr |
QuadNode * | ll |
QuadNode * | lr |
A node for the quadtree.