Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


half

Returns a half value constructed from a half values.
Read time 1 minuteLast updated 4 days ago

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.