Beispiel #1
0
        public QuadTreeIterator put(vec2 i, object o)
        {
            if (root == null)
            {
                center = i;
                size   = new vec2(128, 128);
                root   = new QuadTreeIterator(new QuadTreeNode(null), center, size);
            }

            return(root.prepare(i).put(o));
        }
Beispiel #2
0
 public QuadTreeIterator(QuadTreeIterator node, vec2 center, vec2 dimensions)
 {
     n = node.node;
     c = center;
     d = dimensions;
 }