From 902c18078e4b1c8d64b2c16bf76b0083dbda6a17 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Tue, 18 Feb 2020 08:12:49 +0000 Subject: [PATCH] Fix misleading comment --- src/Core/Quadtree.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Core/Quadtree.h b/src/Core/Quadtree.h index b3b866c7b..63c77a5e5 100644 --- a/src/Core/Quadtree.h +++ b/src/Core/Quadtree.h @@ -41,7 +41,7 @@ class QuadtreeNode // do we overlap with the search space - when looking bool intersect(QRectF r) { return r.intersects(QRectF(topleft,bottomright)); } - // add a node + // add a point void insert(Quadtree *root, QPointF value); // get candidates in same quadrant (might be miles away for big quadrant). @@ -53,7 +53,7 @@ class QuadtreeNode void split(Quadtree *root); private: - // AABB - index into nodes on Quadtree class. + // AABB children (also in a freelist in Quadtree) QuadtreeNode *aabb[4]; // the points in this quadrant @@ -75,8 +75,8 @@ class Quadtree // add a point void insert(QPointF x); - // find points in same quadrant as cursor, of course might be long way away... - int candidates(QRectF point, QList&tohere) { return root->candidates(point, tohere); } + // find points in boundg rect, of course might be long way away... + int candidates(QRectF rect, QList&tohere) { return root->candidates(rect, tohere); } // manage the entire child tree on a single qvector to delete quickly QuadtreeNode *newnode(QPointF topleft, QPointF bottomright);