Handbook
Glossary
rect-intersect ( rect1 rect2 -- newrect )
Factor handbook
»
UI framework
»
Building user interfaces
»
Gadget geometry
»
Rectangles
Prev:
<extent-rect> ( loc ext -- rect )
Next:
rect-union ( rect1 rect2 -- newrect )
Vocabulary
math
.
rectangles
Inputs
rect1
a
rect
rect2
a
rect
Outputs
newrect
a new
rect
Word description
Computes the intersection of two rectangles.
Definition
IN:
math.rectangles
:
rect-intersect
( rect1 rect2 -- newrect )
(rect-intersect)
<extent-rect>
;