From f6a49c96a72156ff09ea7b705b9e0a99abc02fa6 Mon Sep 17 00:00:00 2001 From: Andrew Meadows Date: Fri, 24 Jan 2014 13:59:35 -0800 Subject: [PATCH] Adding ParticleTreeElement::findParticles(box, QVector) --- libraries/particles/src/ParticleTreeElement.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/particles/src/ParticleTreeElement.h b/libraries/particles/src/ParticleTreeElement.h index 8493d59bb8..d8bbbb3a54 100644 --- a/libraries/particles/src/ParticleTreeElement.h +++ b/libraries/particles/src/ParticleTreeElement.h @@ -93,6 +93,10 @@ public: bool removeParticleWithID(uint32_t id); + /// finds all particles that touch a box + /// \param box the query box + /// \param particles[out] vector of Particle pointers + void findParticles(const AABox& box, QVector& foundParticles); protected: virtual void init(unsigned char * octalCode);