| Name | Type | Default | Description | 
|---|---|---|---|
| x | number | 0 | optional The X coordinate of the upper-left corner of the rectangle | 
| y | number | 0 | optional The Y coordinate of the upper-left corner of the rectangle | 
| width | number | 0 | optional The overall width of this rectangle | 
| height | number | 0 | optional The overall height of this rectangle | 
Members
- 
    
    A constant empty rectangle. 
- 
    
    returns the bottom edge of the rectangle 
- 
    
    
    
- Default Value:
- 0
 
 
- 
    
    returns the left edge of the rectangle 
- 
    
    returns the right edge of the rectangle 
- 
    
    returns the top edge of the rectangle 
- 
    
    The type of the object, mainly used to avoid instanceofchecks- Default Value:
- PIXI.SHAPES.RECT
 
- See:
 
- 
    
    
    
- Default Value:
- 0
 
 
- 
    
    
    
- Default Value:
- 0
 
 
- 
    
    
    
- Default Value:
- 0
 
 
Methods
- 
    
    
    Enlarges rectangle that way its corners lie on grid Name Type Default Description resolutionnumber 1 optional resolution epsnumber 0.001 optional precision 
- 
    clone ()PIXI.Rectangle
- 
    
    
    Creates a clone of this Rectangle Returns:Type Description PIXI.Rectangle a copy of the rectangle 
- 
    
    
    Checks whether the x and y coordinates given are contained within this Rectangle Name Type Description xnumber The X coordinate of the point to test ynumber The Y coordinate of the point to test Returns:Type Description boolean Whether the x/y coordinates are within this Rectangle 
- 
    copy (rectangle)PIXI.Rectangle
- 
    
    
    Copies another rectangle to this one. Name Type Description rectanglePIXI.Rectangle The rectangle to copy. Returns:Type Description PIXI.Rectangle Returns itself. 
- 
    
    
    Enlarges this rectangle to include the passed rectangle. Name Type Description rectanglePIXI.Rectangle The rectangle to include. 
- 
    
    
    Fits this rectangle around the passed one. Name Type Description rectanglePIXI.Rectangle The rectangle to fit. 
- 
    
    
    Pads the rectangle making it grow in all directions. Name Type Description paddingXnumber The horizontal padding amount. paddingYnumber optional The vertical padding amount.