+ Debug("%s is contained in %s\n", src.Str().c_str(), dst.Str().c_str());
+ return true;
+}
+
+bool ContainedInQuadChild(const Rect& src, QuadTreeNodeChildren child_type)
+{
+ Rect std = {0,0,1,1};
+ Rect dst = TransformFromQuadChild(std, child_type);
+ if (src.x < dst.x) return false;
+ if (src.y < dst.y) return false;
+ if (src.x + src.w > dst.x + dst.w) return false;
+ if (src.y + src.h > dst.y + dst.h) return false;
+ Debug("%s is contained in %s... \n", src.Str().c_str(), dst.Str().c_str());