UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

11 lines 402 B
/** * Returns next nearest power of two based on the input. If input is already power of two - result will be the same as input. * @example 2 -> 2 * @example 7 -> 8 * @example 10 -> 16 * @see http://developer.classpath.org/doc/java/lang/Integer-source.html * @param {number} v * @return {number} */ export function ceilPowerOfTwo(v: number): number; //# sourceMappingURL=ceilPowerOfTwo.d.ts.map