phaser/v3/src/geom/circle/CopyFrom.js

10 lines
217 B
JavaScript
Raw Normal View History

2016-12-29 00:17:20 +00:00
/**
* 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;