We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
(part of UI)
Returns: rect object
Parameters: aRect (rect), aPoint (point)
Returns a copy of aRect shifted by aPoint.
aRect
aPoint
var aRect = UI.makeRect ( UI.makePoint (10, 15), UI.makeSize (100, 150) ); var bRect = UI.offsetRectByPoint ( aRect, UI.makePoint ( 10, -5 ) ); // bRect is now { origin: { x: 20, y: 10 }, size: { w: 100, h: 150 } }
0.3 Introduced; Docs Valid