MathHelper.NextPowerOfTwo 方法

定义

重载

NextPowerOfTwo(Single)
NextPowerOfTwo(Int64)
NextPowerOfTwo(Int32)
NextPowerOfTwo(Double)

NextPowerOfTwo(Single)

public static float NextPowerOfTwo (float n);
static member NextPowerOfTwo : single -> single

参数

n
Single

返回

适用于

NextPowerOfTwo(Int64)

public static long NextPowerOfTwo (long n);
static member NextPowerOfTwo : int64 -> int64

参数

n
Int64

返回

适用于

NextPowerOfTwo(Int32)

public static int NextPowerOfTwo (int n);
static member NextPowerOfTwo : int -> int

参数

n
Int32

返回

适用于

NextPowerOfTwo(Double)

public static double NextPowerOfTwo (double n);
static member NextPowerOfTwo : double -> double

参数

n
Double

返回

适用于