mirror of
https://github.com/photonstorm/phaser
synced 2025-01-13 05:38:48 +00:00
10 lines
217 B
JavaScript
10 lines
217 B
JavaScript
|
/**
|
||
|
* Copies the x, y and diameter properties from any given object to this Circle.
|
||
|
*/
|
||
|
var CopyFrom = function (source, dest)
|
||
|
{
|
||
|
return dest.setTo(source.x, source.y, source.radius);
|
||
|
};
|
||
|
|
||
|
module.exports = CopyFrom;
|