UNPKG

arcade-physics

Version:
20 lines 675 B
export default IsSizePowerOfTwo; /** * @author Richard Davey <rich@photonstorm.com> * @copyright 2020 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Checks if the given `width` and `height` are a power of two. * Useful for checking texture dimensions. * * @function Phaser.Math.Pow2.IsSize * @since 3.0.0 * * @param {number} width - The width. * @param {number} height - The height. * * @return {boolean} `true` if `width` and `height` are a power of two, otherwise `false`. */ declare function IsSizePowerOfTwo(width: number, height: number): boolean; //# sourceMappingURL=IsSizePowerOfTwo.d.ts.map