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
Phaser.Rectangle - This Rectangle object.
Source code: geom/Rectangle.js (Line 187)