RandomDataGenerator#uuid()

uuid() → {string} Returns a valid RFC4122 version4 ID hex string from https://gist.github.com/1308368 Returns string - A valid RFC4122 version4 ID hex string Source code: math/RandomDataGenerator.js (Line 239)

RandomDataGenerator#weightedPick()

weightedPick(ary) → {any} Returns a random member of array, favoring the earlier entries. Parameters Name Type Description ary Array An Array to pick a random member of. Returns any - A random member of the array. Source code: math/RandomDataGenerator.js (Line 283)

Rectangle#aabb()

aabb(points, out) → {Phaser.Rectangle} Calculates the Axis Aligned Bounding Box (or aabb) from an array of points. Parameters Name Type Argument Description points Array.<Phaser.Point> The array of one or more points. out Phaser.Rectangle <optional> Optional Rectangle to store the value in, if not supplied a new Rectangle object will be created. Returns Phaser.Rectangle - The new Rectangle object. Source code: geom/Rectangle.js (Line 1016)

Rectangle#bottom

bottom : number The sum of the y and height properties. Changing the bottom property of a Rectangle object has no effect on the x, y and width properties, but does change the height property. Source code: geom/Rectangle.js (Line 478)

Rectangle#bottomLeft

bottomLeft : Phaser.Point The location of the Rectangles bottom left corner as a Point object. Gets or sets the location of the Rectangles bottom left corner as a Point object. Source code: geom/Rectangle.js (Line 504)

Rectangle#bottomRight

bottomRight : Phaser.Point The location of the Rectangles bottom right corner as a Point object. Gets or sets the location of the Rectangles bottom right corner as a Point object. Source code: geom/Rectangle.js (Line 522)

Rectangle#ceil()

ceil() Runs Math.ceil() on both the x and y values of this Rectangle. Source code: geom/Rectangle.js (Line 163)

Rectangle#ceilAll()

ceilAll() Runs Math.ceil() on the x, y, width and height values of this Rectangle. Source code: geom/Rectangle.js (Line 174)

Rectangle#centerOn()

centerOn(x, y) → {Phaser.Rectangle} Centers this Rectangle so that the center coordinates match the given x and y values. Parameters Name Type Description x number The x coordinate to place the center of the Rectangle at. y number The y coordinate to place the center of the Rectangle at. Returns Phaser.Rectangle - This Rectangle object Source code: geom/Rectangle.js (Line 122)

Rectangle#centerX

centerX : number The x coordinate of the center of the Rectangle. Source code: geom/Rectangle.js (Line 611)