Operator explicit operator
explicit operator uint2(bool)
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 |
---|---|---|
bool | v | bool to convert to uint2 |
Returns
Type | Description |
---|---|
uint2 | Converted value. |
explicit operator uint2(bool2)
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 operator uint2(int)
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 |
---|---|---|
int | v | int to convert to uint2 |
Returns
Type | Description |
---|---|
uint2 | Converted value. |
explicit operator uint2(int2)
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 operator uint2(float)
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 |
---|---|---|
float | v | float to convert to uint2 |
Returns
Type | Description |
---|---|
uint2 | Converted value. |
explicit operator uint2(float2)
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 operator uint2(double)
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 operator uint2(double2)
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. |