Returns the center of a Rectangle as a Point.
name | type | arguments | description |
---|---|---|---|
rect | Phaser.Geom.Rectangle |
The Rectangle to get the center of. |
|
out | object | Phaser.Geom.Point | <optional> |
Optional point-like object to update with the center coordinates. |
The modified out
object, or a new Point if none was provided.