half4
Returns a half4 vector constructed from four half values.
Read time 3 minutesLast updated 10 days ago
Definition
- Type: Method
- Namespace: Unity.Mathematics
- Assembly: UnityEngine.MathematicsModule
half4(half, half, half, half)
Returns a half4 vector constructed from four half values.
public static half4 half4(half x, half y, half z, half w)
Parameters
Returns
Type | Description |
|---|---|
| half4 | half4 constructed from arguments. |
half4(half, half, half2)
Returns a half4 vector constructed from two half values and a half2 vector.
public static half4 half4(half x, half y, half2 zw)
Parameters
Returns
Type | Description |
|---|---|
| half4 | half4 constructed from arguments. |
half4(half, half2, half)
Returns a half4 vector constructed from a half value, a half2 vector and a half value.
public static half4 half4(half x, half2 yz, half w)
Parameters
Returns
Type | Description |
|---|---|
| half4 | half4 constructed from arguments. |
half4(half, half3)
Returns a half4 vector constructed from a half value and a half3 vector.
public static half4 half4(half x, half3 yzw)
Parameters
Returns
Type | Description |
|---|---|
| half4 | half4 constructed from arguments. |
half4(half2, half, half)
Returns a half4 vector constructed from a half2 vector and two half values.
public static half4 half4(half2 xy, half z, half w)
Parameters
Returns
Type | Description |
|---|---|
| half4 | half4 constructed from arguments. |
half4(half2, half2)
Returns a half4 vector constructed from two half2 vectors.
public static half4 half4(half2 xy, half2 zw)
Parameters
Returns
Type | Description |
|---|---|
| half4 | half4 constructed from arguments. |
half4(half3, half)
Returns a half4 vector constructed from a half3 vector and a half value.
public static half4 half4(half3 xyz, half w)
Parameters
Returns
Type | Description |
|---|---|
| half4 | half4 constructed from arguments. |
half4(half4)
Returns a half4 vector constructed from a half4 vector.
public static half4 half4(half4 xyzw)
Parameters
The constructed vector's xyzw components will be set to this value.
Returns
Type | Description |
|---|---|
| half4 | half4 constructed from arguments. |
half4(half)
Returns a half4 vector constructed from a single half value by assigning it to every component.
public static half4 half4(half v)
Parameters
half to convert to half4
Returns
Type | Description |
|---|---|
| half4 | Converted value. |
half4(float)
Returns a half4 vector constructed from a single float value by converting it to half and assigning it to every component.
public static half4 half4(float v)
Parameters
float to convert to half4
Returns
Type | Description |
|---|---|
| half4 | Converted value. |
half4(float4)
Return a half4 vector constructed from a float4 vector by componentwise conversion.
public static half4 half4(float4 v)
Parameters
float4 to convert to half4
Returns
Type | Description |
|---|---|
| half4 | Converted value. |
half4(double)
Returns a half4 vector constructed from a single double value by converting it to half and assigning it to every component.
public static half4 half4(double v)
Parameters
double to convert to half4
Returns
Type | Description |
|---|---|
| half4 | Converted value. |
half4(double4)
Return a half4 vector constructed from a double4 vector by componentwise conversion.
public static half4 half4(double4 v)
Parameters
double4 to convert to half4
Returns
Type | Description |
|---|---|
| half4 | Converted value. |