文档

Unity Engine

Unity Engine

CeilToInt

Converts a Vector3 to a Vector3Int by doing a Ceiling to each value.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

CeilToInt(Vector3)

Converts a Vector3 to a Vector3Int by doing a Ceiling to each value.
public static Vector3Int CeilToInt(Vector3 v)

Parameters

The Vector3 to convert.

Returns

Type

Description

Vector3IntThe converted vector as a Vector3Int.

Remarks

As there is a conversion of float to integer, there is a loss of precision.

CeilToInt(Vector3)

Converts a Vector3 to a Vector3Int by doing a Ceiling to each value.
public static Vector3Int CeilToInt(in Vector3 v)

Parameters

The Vector3 to convert.

Returns

Type

Description

Vector3IntThe converted vector as a Vector3Int.

Remarks

As there is a conversion of float to integer, there is a loss of precision.