mirror of
https://github.com/photonstorm/phaser
synced 2025-01-03 00:38:46 +00:00
12 lines
338 B
JavaScript
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;
|