diff options
Diffstat (limited to 'src/2geom/quadtree.cpp')
| -rw-r--r-- | src/2geom/quadtree.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/2geom/quadtree.cpp b/src/2geom/quadtree.cpp index a84a5a7d4..bb041edbe 100644 --- a/src/2geom/quadtree.cpp +++ b/src/2geom/quadtree.cpp @@ -1,5 +1,17 @@ #include "quadtree.h" +namespace Geom{ +Quad* QuadTree::search(Rect const &r) { + return search(r[0].min(), r[1].min(), + r[0].max(), r[1].max()); +} + +void QuadTree::insert(Rect const &r, int shape) { + insert(r[0].min(), r[1].min(), + r[0].max(), r[1].max(), shape); +} + + Quad* QuadTree::search(double x0, double y0, double x1, double y1) { Quad *q = root; @@ -117,6 +129,8 @@ void QuadTree::erase(Quad *q, int shape) { return; } +}; + /* Local Variables: mode:c++ |
