phaser/wip/point/Divide.js

22 lines
381 B
JavaScript
Raw Normal View History

2017-10-13 14:11:54 +01:00
/**
* [description]
*
* @function Phaser.Geom.Point.Divide
* @since 3.0.0
*
* @param {Phaser.Geom.Point} point - [description]
* @param {number} x - [description]
* @param {number} y - [description]
*
* @return {Phaser.Geom.Point} [description]
*/
var Divide = function (point, x, y)
{
point.x /= x;
point.y /= y;
return point;
};
module.exports = Divide;