ドキュメント

Unity Engine

Unity Engine

explicit operator half

Explicitly converts a float value to a half value.
読み終わるまでの所要時間 1 分最終更新 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.