menu
openworld package
documentation
three_dart/three3d/math/index.dart
MathUtils
isPowerOfTwo static method
isPowerOfTwo static method
dark_mode
light_mode
isPowerOfTwo
static method
bool
isPowerOfTwo
(
int
value
)
Implementation
static bool isPowerOfTwo(int value) { return (value & (value - 1)) == 0 && value != 0; }
openworld package
documentation
three_dart/three3d/math/index
MathUtils
isPowerOfTwo static method
MathUtils class