Rectangle#volume

[readonly] volume : number The volume of the Rectangle derived from width * height. Source code: geom/Rectangle.js (Line 583)

Rectangle#union()

union(b, out) → {Phaser.Rectangle} Adds two Rectangles together to create a new Rectangle object, by filling in the horizontal and vertical space between the two Rectangles. Parameters Name Type Argument Description b Phaser.Rectangle The second Rectangle object. out Phaser.Rectangle <optional> Optional Rectangle object. If given the new values will be set into this object, otherwise a brand new Rectangle object will be created and returned. Returns Phaser.Rectangle - A Re

Rectangle#type

[readonly] type : number The const type of this object. Source code: geom/Rectangle.js (Line 49)

Rectangle#toString()

toString() → {string} Returns a string representation of this object. Returns string - A string representation of the instance. Source code: geom/Rectangle.js (Line 439)

Rectangle#topRight

topRight : Phaser.Point The location of the Rectangles top right corner as a Point object. The location of the Rectangles top left corner as a Point object. Source code: geom/Rectangle.js (Line 718)

Rectangle#topLeft

topLeft : Phaser.Point The location of the Rectangles top left corner as a Point object. Source code: geom/Rectangle.js (Line 700)

Rectangle#top

top : number The y coordinate of the top of the Rectangle. Changing the top property of a Rectangle object has no effect on the x and width properties.However it does affect the height property, whereas changing the y value does not affect the height property. Source code: geom/Rectangle.js (Line 677)

Rectangle#size()

size(output) → {Phaser.Point} The size of the Rectangle object, expressed as a Point object with the values of the width and height properties. Parameters Name Type Argument Description output Phaser.Point <optional> Optional Point object. If given the values will be set into the object, otherwise a brand new Point object will be created and returned. Returns Phaser.Point - The size of the Rectangle object. Source code: geom/Rectangle.js (Line 229)

Rectangle#setTo()

setTo(x, y, width, height) → {Phaser.Rectangle} Sets the members of Rectangle to the specified values. Parameters Name Type Description x number The x coordinate of the top-left corner of the Rectangle. y number The y coordinate of the top-left corner of the Rectangle. width number The width of the Rectangle. Should always be either zero or a positive value. height number The height of the Rectangle. Should always be either zero or a positive value. Returns Phaser.Rectangle - T

Rectangle#scale()

scale(x, y) → {Phaser.Rectangle} Scales the width and height of this Rectangle by the given amounts. Parameters Name Type Argument Description x number The amount to scale the width of the Rectangle by. A value of 0.5 would reduce by half, a value of 2 would double the width, etc. y number <optional> The amount to scale the height of the Rectangle by. A value of 0.5 would reduce by half, a value of 2 would double the height, etc. Returns Phaser.Rectangle - This Rectangle o