Creates an rectangle with an origin point [pX,pY] and a size of [pWidth * pHeight].
The other end point has the coordinate [pX+pWidth,pY+pHeight]. For the screen, [pX,pY] is the top left position of the 2D rectangle.
Optional pX: numberx coordinate of the origin of the rectangle.Optional pY: numbery coordinate of the origin of the rectangle.Optional pWidth: numberOptional pHeight: numberThe newly constructed Rectangle.
Height of the rect (negative value is invalid).
Width of the rect (negative value is invalid).
x coordinate of the origin of the rectangle (minimum of x coordinate of the rectangle).
This corresponds to the minimum abscissa of the rectangle. Since minimum screen abscissa is the left of the screen, x=0 for a rectangle on the left of the screen.
y coordinate of the origin of the rectangle (minimum of y coordinate of the rectangle).
This corresponds to the minimum ordinate of the rectangle. Since minimum screen ordinate is the top of the screen, y=0 for a rectangle on top of the screen.
Tells if the two rectangles are strictly identical.
true if the two rectangles are strictly identical.
Sets the content of the Rectangle from a former call to toJSON.
true if the data is set.
A 2D rectangle.
Rectangles are used with 2D primitive managers.
A rectangle is aligned on the pixel boundaries. Its origin is the lowest value in x and y.