Returns the size of the Rectangle, expressed as a Point object.
With the value of the width
as the x
property and the height
as the y
property.
name | type | arguments | description |
---|---|---|---|
rect | Phaser.Geom.Rectangle |
The Rectangle to get the size from. |
|
out | object | Phaser.Geom.Point | <optional> |
The Point object to store the size in. If not given, a new Point instance is created. |
A Point object where x
holds the width and y
holds the height of the Rectangle.