menu
three_dart package
documentation
three3d/math/math_utils.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; }
three_dart package
documentation
three3d/math/math_utils
MathUtils
isPowerOfTwo static method
MathUtils class