2018-02-12 16:01:20 +00:00
|
|
|
/**
|
|
|
|
* @author Richard Davey <rich@photonstorm.com>
|
|
|
|
* @copyright 2018 Photon Storm Ltd.
|
|
|
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
|
|
|
*/
|
|
|
|
|
2017-10-13 13:11:54 +00:00
|
|
|
/**
|
2018-01-26 04:53:16 +00:00
|
|
|
* Copies the `x`, `y`, `width` and `height` properties from the `source` Ellipse
|
|
|
|
* into the given `dest` Ellipse, then returns the `dest` Ellipse.
|
2017-10-13 13:11:54 +00:00
|
|
|
*
|
|
|
|
* @function Phaser.Geom.Ellipse.CopyFrom
|
|
|
|
* @since 3.0.0
|
|
|
|
*
|
2018-03-27 13:27:08 +00:00
|
|
|
* @generic {Phaser.Geom.Ellipse} O - [dest,$return]
|
|
|
|
*
|
2018-01-26 04:53:16 +00:00
|
|
|
* @param {Phaser.Geom.Ellipse} source - The source Ellipse to copy the values from.
|
|
|
|
* @param {Phaser.Geom.Ellipse} dest - The destination Ellipse to copy the values to.
|
2017-10-13 13:11:54 +00:00
|
|
|
*
|
2018-01-26 04:53:16 +00:00
|
|
|
* @return {Phaser.Geom.Ellipse} The dest Ellipse.
|
2017-10-13 13:11:54 +00:00
|
|
|
*/
|
2017-01-01 18:23:19 +00:00
|
|
|
var CopyFrom = function (source, dest)
|
|
|
|
{
|
|
|
|
return dest.setTo(source.x, source.y, source.width, source.height);
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = CopyFrom;
|