LogoPixi’VN
pixi-jsFunctions

Function: isPow2()

> isPow2(v): boolean

Defined in: node_modules/pixi.js/lib/maths/misc/pow2.d.ts:18

Function

Checks if a number is a power of two. isPow2

Parameters

v

number

input value

Returns

boolean

true if value is power of two

Advanced