文档

Unity Engine

Unity Engine

half

Returns a half value constructed from a half values.
阅读时间1 分钟最后更新于 1 个月前

Definition

half(half)

Returns a half value constructed from a half values.
public static half half(half x)

Parameters

The input half value to copy.

Returns

Type

Description

halfThe constructed half value.

half(float)

Returns a half value constructed from a float value.
public static half half(float v)

Parameters

The single precision float value to convert to half.

Returns

Type

Description

halfThe constructed half value.

half(double)

Returns a half value constructed from a double value.
public static half half(double v)

Parameters

The double precision float value to convert to half.

Returns

Type

Description

halfThe constructed half value.