phaser/v3/src/geom/rectangle/Ceil.js

10 lines
138 B
JavaScript
Raw Normal View History

2016-12-20 17:07:16 +00:00
var Ceil = function (rect)
{
rect.x = Math.ceil(rect.x);
rect.y = Math.ceil(rect.y);
return rect;
};
module.exports = Ceil;