Handbook
Glossary
<extent-rect> ( loc ext -- rect )
Factor handbook
»
UI framework
»
Building user interfaces
»
Gadget geometry
»
Rectangles
Prev:
<rect> ( loc dim -- rect )
Next:
rect-intersect ( rect1 rect2 -- newrect )
Vocabulary
math
.
rectangles
Inputs
loc
a pair of integers
ext
a pair of integers
Outputs
rect
a new
rect
Word description
Creates a new rectangle with the specified top-left and bottom-right corner locations.
See also
<zero-rect>
,
<rect>
Definition
USING:
kernel
math.vectors
;
IN:
math.rectangles
:
<extent-rect>
( loc ext -- rect )
over
[v-]
<rect>
;