Create rectangle with all zero values.
Create rectangle with left, right, top, bottom. Properties centerX and centerY will be centered in the middle.
Left coordinate.
Right coordinate.
Top coordinate.
Bottom coordinate.
Create rectangle with full arguments.
Left coordinate.
Center x-coordinate.
Right coordinate.
Top coordinate.
Center y-coordinate.
Bottom coordinate.
Bottom section height getter.
Height getter.
Left section width getter.
Right section width getter.
Top section height getter.
Width getter.
Does this Rect contain given (x, y)-point?
X-coordinate.
Y-coordinate.
Move this rect by (dx, dy). Immutable, returns modified copy.
Offset amount in x-direction.
Offset amount in y-direction.
Move this rect by (dx, dy). Modifies this Rect.
Offset amount in x-direction.
Offset amount in y-direction.
Scale Rect. Anchor pos is (centerX, centerY). Immutable, returns modified copy.
Scale x-amount.
Optional
scaleY: numberScale y-amount. If undefined then scale x-amount is used.
Scaled copy of this DivRect.
Scale Rect. Anchor pos is (centerX, centerY). Modifies this Rect.
Scale x-amount.
Optional
scaleY: numberScale y-amount. If undefined then scale x-amount is used.
This DivRect instance.
Static
createCreate rect from basic left, top, width and height arguments.
Left coordinate.
Top coordinate.
With.
Height.
Static
createCreate rect from centerX, centerY, width, height arguments.
Center x-coordinate.
Center y-coordinate.
Width.
Height.
Static
createCreate rect from sections.
Left section width.
Right section width.
Top section height.
Bottomsection height.
Static
equalsStatic
equalsStatic
overlapStatic
overlap
DivRect class, left, top, right, bottom rectangle divided into four sections by centerX, centerY.