Handbook
Glossary
<quadtree> ( bounds -- quadtree )
Quadtrees
Next:
in-rect ( tree rect -- values )
Vocabulary
quadtrees
Inputs
bounds
a
rect
Outputs
quadtree
a
quadtree
Word description
Constructs an empty quadtree covering the axis-aligned rectangle indicated by
bounds
. All the keys of
quadtree
must be two-dimensional vectors lying inside
bounds
.
Definition
USING:
accessors
kernel
;
IN:
quadtrees
:
<quadtree>
( bounds -- quadtree )
quadtree
new
swap
>>bounds
t
>>leaf?
;