phaser/src/geom/ellipse/OffsetPoint.js

21 lines
410 B
JavaScript
Raw Normal View History

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