quadtree.cpp revision 981b809bc6ed10a21e89444d9447e5475801874f
#include "quadtree.h"
while(q) {
unsigned i = 0;
i += 1;
} else
break;
i += 2;
} else
break;
assert(i < 4);
if(qq == 0) break; // last non-null
q = qq;
}
return q;
}
// loop until a quad would break the box.
if(root == 0) {
bx0 = 0;
bx1 = 1;
by0 = 0;
by1 = 1;
}
unsigned i = 0;
i += 1;
} else {
}
i += 2;
} else {
}
q = new Quad;
root = q;
}
while(q) {
unsigned i = 0;
i += 1;
} else
break;
i += 2;
} else
break;
assert(i < 4);
if(qq == 0) {
}
q = qq;
}
}
if(*i == shape) {
}
}
}
return;
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(substatement-open . 0))
indent-tabs-mode:nil
c-brace-offset:0
fill-column:99
End:
vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
*/