기술 자료

Unity Engine

Unity Engine

RoundToInt(Vector3)

Converts a Vector3 to a Vector3Int by doing a Round to each value.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static Vector3Int RoundToInt(Vector3 v)

Parameters

The Vector3 to convert.

Returns

Type

Description

Vector3IntThe converted Vector3 as a Vector3Int.

Remarks

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