arcade-physics
Version:
Use Arcade Physics without Phaser.
24 lines • 730 B
JavaScript
;
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Apply `Math.ceil()` to each coordinate of the given Point.
*
* @function Phaser.Geom.Point.Ceil
* @since 3.0.0
*
* @generic {Phaser.Geom.Point} O - [point,$return]
*
* @param {Phaser.Geom.Point} point - The Point to ceil.
*
* @return {Phaser.Geom.Point} The Point with `Math.ceil()` applied to its coordinates.
*/
const Ceil = point => {
return point.setTo(Math.ceil(point.x), Math.ceil(point.y));
};
exports.default = Ceil;
//# sourceMappingURL=Ceil.js.map