phaser/src/geom/circle/Clone.js

19 lines
368 B
JavaScript
Raw Normal View History

2016-12-29 00:17:20 +00:00
var Circle = require('./Circle');
/**
* [description]
*
* @function Phaser.Geom.Circle.Clone
* @since 3.0.0
*
* @param {Phaser.Geom.Circle} source - The Circle to be cloned.
2017-10-13 13:11:54 +00:00
*
* @return {Phaser.Geom.Circle} A clone of the source Circle.
*/
2016-12-29 00:17:20 +00:00
var Clone = function (source)
{
return new Circle(source.x, source.y, source.radius);
};
module.exports = Clone;