phaser/src/geom/ellipse/Offset.js

22 lines
397 B
JavaScript
Raw Normal View History

2017-10-13 13:11:54 +00:00
/**
* [description]
*
* @function Phaser.Geom.Ellipse.Offset
* @since 3.0.0
*
* @param {Phaser.Geom.Ellipse} ellipse - [description]
* @param {number} x - [description]
* @param {number} y - [description]
*
* @return {Phaser.Geom.Ellipse} [description]
*/
2017-01-02 00:47:16 +00:00
var Offset = function (ellipse, x, y)
{
ellipse.x += x;
ellipse.y += y;
return ellipse;
};
module.exports = Offset;