Operator Explicit
Explicit(Boolean to uint2)
Explicitly converts a single bool value to a uint2 vector by converting it to uint and assigning it to every component.
Declaration
public static explicit operator uint2(bool v)
Parameters
Type | Name | Description |
---|---|---|
Boolean | v | bool to convert to uint2 |
Returns
Type | Description |
---|---|
uint2 | Converted value. |
Explicit(bool2 to uint2)
Explicitly converts a bool2 vector to a uint2 vector by componentwise conversion.
Declaration
public static explicit operator uint2(bool2 v)
Parameters
Type | Name | Description |
---|---|---|
bool2 | v | bool2 to convert to uint2 |
Returns
Type | Description |
---|---|
uint2 | Converted value. |
Explicit(Int32 to uint2)
Explicitly converts a single int value to a uint2 vector by converting it to uint and assigning it to every component.
Declaration
public static explicit operator uint2(int v)
Parameters
Type | Name | Description |
---|---|---|
Int32 | v | int to convert to uint2 |
Returns
Type | Description |
---|---|
uint2 | Converted value. |
Explicit(int2 to uint2)
Explicitly converts a int2 vector to a uint2 vector by componentwise conversion.
Declaration
public static explicit operator uint2(int2 v)
Parameters
Type | Name | Description |
---|---|---|
int2 | v | int2 to convert to uint2 |
Returns
Type | Description |
---|---|
uint2 | Converted value. |
Explicit(Single to uint2)
Explicitly converts a single float value to a uint2 vector by converting it to uint and assigning it to every component.
Declaration
public static explicit operator uint2(float v)
Parameters
Type | Name | Description |
---|---|---|
Single | v | float to convert to uint2 |
Returns
Type | Description |
---|---|
uint2 | Converted value. |
Explicit(float2 to uint2)
Explicitly converts a float2 vector to a uint2 vector by componentwise conversion.
Declaration
public static explicit operator uint2(float2 v)
Parameters
Type | Name | Description |
---|---|---|
float2 | v | float2 to convert to uint2 |
Returns
Type | Description |
---|---|
uint2 | Converted value. |
Explicit(Double to uint2)
Explicitly converts a single double value to a uint2 vector by converting it to uint and assigning it to every component.
Declaration
public static explicit operator uint2(double v)
Parameters
Type | Name | Description |
---|---|---|
Double | v | double to convert to uint2 |
Returns
Type | Description |
---|---|
uint2 | Converted value. |
Explicit(double2 to uint2)
Explicitly converts a double2 vector to a uint2 vector by componentwise conversion.
Declaration
public static explicit operator uint2(double2 v)
Parameters
Type | Name | Description |
---|---|---|
double2 | v | double2 to convert to uint2 |
Returns
Type | Description |
---|---|
uint2 | Converted value. |