ドキュメント

Unity Engine

Unity Engine

implicit operator float

Implicitly converts a half value to a float value.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

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

implicit operator float(Singl)

Implicitly converts a half value to a float value.
public static implicit operator float(half d)

Parameters

The half value to convert to a single precision float.

Returns

Type

Description

floatThe converted single precision float value.

implicit operator double(Doubl)

Implicitly converts a half value to a double value.
public static implicit operator double(half d)

Parameters

The half value to convert to double precision float.

Returns

Type

Description

doubleThe converted double precision float value.