Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
C#
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
Box2D
Common
MathUtils
IsPowerOfTwo
Box2D.Common.MathUtils.IsPowerOfTwo C# (CSharp) Метод
Документация по классу MathUtils
Показать файл
Открыть проект
IsPowerOfTwo()
публичный
статический
Метод
public
static
IsPowerOfTwo
(
int
x
) :
bool
x
int
Результат
bool
public static bool IsPowerOfTwo(int x) { return x > 0 && (x & x - 1) == 0; }
MathUtils
Abs
Atan2
Ceil
CeilPowerOf2
Clamp
ClampToOut
Cos
Distance
DistanceSquared
FastAtan2
FastPow
FloatToIntBits
Floor
IsPowerOfTwo
Map
MathUtils
Max
Min
NextPowerOfTwo
Pow
RandomFloat
ReduceAngle
Round
Sin
SinLut
Sqrt