EaselJS

EaselJS  0.4.1

EaselJS > EaselJS > Rectangle
Search:
 
Filters

Class Rectangle

Represents a rectangle as defined by the points (x, y) and (x+width, y+height).

Constructor

Rectangle ( x , y , width , height )
Parameters:
x <Number> X position. Default is 0.
y <Number> Y position. Default is 0.
width <Number> Width. Default is 0.
height <Number> Height. Default is 0.

Properties

height - Number

Height.

width - Number

Width.

x - Number

X position.

y - Number

Y position.

Methods

clone

Rectangle clone ( )
Returns a clone of the Rectangle instance.
Returns: Rectangle
a clone of the Rectangle instance.

initialize

protected void initialize ( )
Initialization method.
Returns: void

toString

String toString ( )
Returns a string representation of this object.
Returns: String
a string representation of the instance.