phaser/src/geom/point/Floor.js

17 lines
309 B
JavaScript
Raw Normal View History

2017-10-13 13:11:54 +00:00
/**
* [description]
*
* @function Phaser.Geom.Point.Floor
* @since 3.0.0
*
* @param {Phaser.Geom.Point} point - [description]
*
* @return {Phaser.Geom.Point} [description]
*/
2017-01-03 22:21:47 +00:00
var Floor = function (point)
{
return point.setTo(Math.floor(point.x), Math.floor(point.y));
};
module.exports = Floor;