phaser/v3/src/geom/circle/CopyFrom.js
2016-12-29 00:17:20 +00:00

12 lines
338 B
JavaScript

/**
* Copies the x, y and diameter properties from any given object to this Circle.
* @method Phaser.Circle#copyFrom
* @param {any} source - The object to copy from.
* @return {Circle} This Circle object.
*/
var CopyFrom = function (source, dest)
{
return dest.setTo(source.x, source.y, source.radius);
};
module.exports = CopyFrom;