文档

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.