Class Index | File Index

Classes


Class createjs.Rectangle


Extends .

Defined in: rectangle.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
createjs.Rectangle(x, y, width, height)
Represents a rectangle on a two-dimensional coordinate system.
Field Summary
Field Attributes Field Name and Description
 
The height of this rectangle.
 
The width of this rectangle.
 
x
The x position of this rectangle.
 
y
The y position of this rectangle.
Method Summary
Method Attributes Method Name and Description
 
contain(x, y)
 
initialize(x, y, width, height)
Initializes all properties.
 
 
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}

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 04 2016 17:11:29 GMT+0900 (JST)