half
Returns a half value constructed from a half values.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: Unity.Mathematics
- Assembly: UnityEngine.MathematicsModule
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 |
|---|---|
| half | The 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 |
|---|---|
| half | The 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 |
|---|---|
| half | The constructed half value. |