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#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#topLeft

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

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#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#type

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

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#volume

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

Rectangle#width

width : number The width of the Rectangle. This value should never be set to a negative. Source code: geom/Rectangle.js (Line 38)

Rectangle#x

x : number The x coordinate of the top-left corner of the Rectangle. Source code: geom/Rectangle.js (Line 28)