Class createjs.Rectangle
				
				
Extends
					.
				
			
				
				
				
					
Defined in:  rectangle.js.
				
			
| Constructor Attributes | Constructor Name and Description | 
|---|---|
| 
							 
								createjs.Rectangle(x, y, width, height)
							 
							Represents a rectangle on a two-dimensional coordinate system. 
						 | 
					
| Field Attributes | Field Name and Description | 
|---|---|
| 
								
								 The height of this rectangle. 
							 | 
						|
| 
								
								 The width of this rectangle. 
							 | 
						|
| 
								
								 The x position of this rectangle. 
							 | 
						|
| 
								
								 The y position of this rectangle. 
							 | 
						
| Method Attributes | Method Name and Description | 
|---|---|
| 
								 contain(x, y)
								 
								
							 | 
						|
| 
								 initialize(x, y, width, height)
								 
								Initializes all properties. 
							 | 
						|
| 
								 isEmpty()
								 
								
							 | 
						|
| 
								 isEqual(rectangle)
								 
								Compares this rectangle with the specified one. 
							 | 
						
					Class Detail
				
				
				
						createjs.Rectangle(x, y, width, height)
				
				
				
					Represents a rectangle on a two-dimensional coordinate system.
					
				
				
				
				
				
					
						- Parameters:
 - {number} x
 - {number} y
 - {number} width
 - {number} height
 
					Field Detail
				
				
					 
					
					
					
					height
					
					
					
						The height of this rectangle.
						
						
					
					
					
						
						
						
						
					
					
					
					width
					
					
					
						The width of this rectangle.
						
						
					
					
					
						
						
						
						
					
					
					
					x
					
					
					
						The x position of this rectangle.
						
						
					
					
					
						
						
						
						
					
					
					
					y
					
					
					
						The y position of this rectangle.
						
						
					
					
					
						
						
						
						
					
				
			
		
			
				
					Method Detail
				
				
					 
					
					
					
					contain(x, y)
					
					
					- Parameters:
 - x
 - y
 
					
					{createjs.Rectangle}
					initialize(x, y, width, height)
					
					
					
						Initializes all properties.
						
						
					
					
					
					
						
							- Parameters:
 - {number} x
 - {number} y
 - {number} width
 - {number} height
 
- Returns:
 - {createjs.Rectangle}
 
					
					
					isEmpty()
					
					
					
					
					{boolean}
					isEqual(rectangle)
					
					
					
						Compares this rectangle with the specified one.
						
						
					
					
					
					
						
							- Parameters:
 - {createjs.Rectangle} rectangle
 
- Returns:
 - {boolean}