Handbook
Glossary
rect-extent ( rect -- loc ext )
Factor handbook
»
UI framework
»
Building user interfaces
»
Gadget geometry
»
Rectangles
Prev:
rect-bounds ( rect -- loc dim )
Next:
<zero-rect> ( -- rect )
Vocabulary
math
.
rectangles
Inputs
rect
a
rect
Outputs
loc
a pair of integers
ext
a pair of integers
Word description
Outputs the location of the top-left and bottom-right corners of a rectangle.
See also
rect-bounds
Definition
USING:
kernel
math.vectors
;
IN:
math.rectangles
:
rect-extent
( rect -- loc ext )
rect-bounds
over
v+
;