文档

Unity Engine

Unity Engine

Log2Floor(int)

Returns the binary logarithm of the value, but the result is rounded down to the nearest integer.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public static int Log2Floor(int value)

Parameters

value

The value.

Returns

Type

Description

intThe binary logarithm of the
value
, but the result is rounded down to the nearest integer.