|
Galois
|
Stores sets of objects at specific spatial coordinates in a quad tree. More...
#include <SpatialTree.h>
Public Member Functions | |
| SpatialTree2d (double xmin=0.0, double ymin=0.0, double xmax=0.0, double ymax=0.0) | |
| ~SpatialTree2d () | |
| void | init (double xmin, double ymin, double xmax, double ymax) |
| T * | find (double x, double y) |
| Returns null if tree is empty. More... | |
| void | insert (double x, double y, const T &v) |
| Insert an element. More... | |
Stores sets of objects at specific spatial coordinates in a quad tree.
Lookup returns an approximation of the closest item
|
inline |
|
inline |
|
inline |
Returns null if tree is empty.
|
inline |
|
inline |
Insert an element.
Will always insert and never roll back and thus must be used after failsafe point.