기술 자료

Unity Engine

Unity Engine

explicit operator half

Explicitly converts a float value to a half value.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Operator
  • Namespace: Unity.Mathematics
  • Assembly: UnityEngine.MathematicsModule

explicit operator half(hal)

Explicitly converts a float value to a half value.
public static explicit operator half(float v)

Parameters

The single precision float value to convert to half.

Returns

Type

Description

halfThe converted half value.

explicit operator half(hal)

Explicitly converts a double value to a half value.
public static explicit operator half(double v)

Parameters

The double precision float value to convert to half.

Returns

Type

Description

halfThe converted half value.