copyFrom(source) → {Phaser.Rectangle}
Copies the x, y, width and height properties from any given object to this Rectangle.
Parameters
Name | Type | Description |
---|---|---|
source | any | The object to copy from. |
Returns
This Rectangle object.
- Source code: geom/Rectangle.js (Line 187)
Please login to continue.