IsPowerOfTwo(int)
Returns true if a positive value is a non-zero power of two.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
public static bool IsPowerOfTwo(int value)
Parameters
A positive value.
Returns
Type | Description |
|---|---|
| bool | True if the value is a non-zero, positive power of two. |
Remarks
Result is invalid if .
value < 0