Optionalx: string | number
The X coordinate of the upper-left corner of the rectangle
Optionaly: string | number
The Y coordinate of the upper-left corner of the rectangle
Optionalwidth: string | number
The overall width of the rectangle
Optionalheight: string | number
The overall height of the rectangle
ReadonlytypeThe type of the object, mainly used to avoid instanceof checks
Returns the bottom edge of the rectangle.
Returns the left edge of the rectangle.
Returns the right edge of the rectangle.
Returns the top edge of the rectangle.
StaticEMPTYA constant empty rectangle.
Enlarges rectangle that way its corners lie on grid
Optionalresolution: number
resolution
Optionaleps: number
precision
Returns itself.
Checks whether the x and y coordinates given are contained within this Rectangle
The X coordinate of the point to test
The Y coordinate of the point to test
Whether the x/y coordinates are within this Rectangle
Enlarges this rectangle to include the passed rectangle.
The rectangle to include.
Returns itself.
Fits this rectangle around the passed one.
The rectangle to fit.
Returns itself.
Determines whether the other Rectangle transformed by transform intersects with this Rectangle object.
Returns true only if the area of the intersection is >0, this means that Rectangles
sharing a side are not overlapping. Another side effect is that an arealess rectangle
(width or height equal to zero) can't intersect any other rectangle.
A value of true if the transformed other Rectangle intersects with this; otherwise false.
Pads the rectangle making it grow in all directions. If paddingY is omitted, both paddingX and paddingY will be set to paddingX.
OptionalpaddingX: number
The horizontal padding amount.
OptionalpaddingY: number
The vertical padding amount.
Returns itself.
Rectangle object is an area defined by its position, as indicated by its top-left corner point (x, y) and by its width and its height.
Memberof
PIXI