phaser/v3/src/geom/rectangle/Ceil.js
2016-12-20 17:07:16 +00:00

9 lines
138 B
JavaScript

var Ceil = function (rect)
{
rect.x = Math.ceil(rect.x);
rect.y = Math.ceil(rect.y);
return rect;
};
module.exports = Ceil;