mirror of
https://github.com/photonstorm/phaser
synced 2025-03-03 06:47:11 +00:00
21 lines
372 B
JavaScript
21 lines
372 B
JavaScript
/**
|
|
* [description]
|
|
*
|
|
* @function Phaser.Geom.Point.Add
|
|
* @since 3.0.0
|
|
*
|
|
* @param {Phaser.Geom.Point} point - [description]
|
|
* @param {number} x - [description]
|
|
* @param {number} y - [description]
|
|
*
|
|
* @return {Phaser.Geom.Point} [description]
|
|
*/
|
|
var Add = function (point, x, y)
|
|
{
|
|
point.x += x;
|
|
point.y += y;
|
|
|
|
return point;
|
|
};
|
|
|
|
module.exports = Add;
|