offset-rect ( rect loc -- newrect )
Factor handbook » UI framework » Building user interfaces » Gadget geometry » Rectangles

Prev:contains-point? ( point rect -- ? )


Vocabulary
math.rectangles

Inputs
recta rect
loca pair of integers


Outputs
newrecta new rect


Word description
Creates a new rectangle with the same dimensions, and top-left corner translated by loc.

Definition