Handbook
Glossary
ur-bounds ( rect -- rect' )
Vocabulary
quadtrees
.
private
Inputs
rect
an
object
Outputs
rect'
an
object
Definition
USING:
accessors
kernel
math.rectangles
math.vectors
;
IN:
quadtrees.private
:
ur-bounds
( rect -- rect' )
[
[
loc>>
]
[
dim>>
{
0.5 0.5
}
v*
]
bi
v+
]
[
child-dim
]
bi
<rect>
;