IsPowerOfTwo(int)
Returns true if a positive value is a non-zero power of two.
읽는 시간 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