Operator explicit operator
explicit operator int4(bool)
Explicitly converts a single bool value to a int4 vector by converting it to int and assigning it to every component.
Declaration
public static explicit operator int4(bool v)
Parameters
Type | Name | Description |
---|---|---|
bool | v | bool to convert to int4 |
Returns
Type | Description |
---|---|
int4 | Converted value. |
explicit operator int4(bool4)
Explicitly converts a bool4 vector to a int4 vector by componentwise conversion.
Declaration
public static explicit operator int4(bool4 v)
Parameters
Type | Name | Description |
---|---|---|
bool4 | v | bool4 to convert to int4 |
Returns
Type | Description |
---|---|
int4 | Converted value. |
explicit operator int4(uint)
Explicitly converts a single uint value to a int4 vector by converting it to int and assigning it to every component.
Declaration
public static explicit operator int4(uint v)
Parameters
Type | Name | Description |
---|---|---|
uint | v | uint to convert to int4 |
Returns
Type | Description |
---|---|
int4 | Converted value. |
explicit operator int4(uint4)
Explicitly converts a uint4 vector to a int4 vector by componentwise conversion.
Declaration
public static explicit operator int4(uint4 v)
Parameters
Type | Name | Description |
---|---|---|
uint4 | v | uint4 to convert to int4 |
Returns
Type | Description |
---|---|
int4 | Converted value. |
explicit operator int4(float)
Explicitly converts a single float value to a int4 vector by converting it to int and assigning it to every component.
Declaration
public static explicit operator int4(float v)
Parameters
Type | Name | Description |
---|---|---|
float | v | float to convert to int4 |
Returns
Type | Description |
---|---|
int4 | Converted value. |
explicit operator int4(float4)
Explicitly converts a float4 vector to a int4 vector by componentwise conversion.
Declaration
public static explicit operator int4(float4 v)
Parameters
Type | Name | Description |
---|---|---|
float4 | v | float4 to convert to int4 |
Returns
Type | Description |
---|---|
int4 | Converted value. |
explicit operator int4(double)
Explicitly converts a single double value to a int4 vector by converting it to int and assigning it to every component.
Declaration
public static explicit operator int4(double v)
Parameters
Type | Name | Description |
---|---|---|
double | v | double to convert to int4 |
Returns
Type | Description |
---|---|
int4 | Converted value. |
explicit operator int4(double4)
Explicitly converts a double4 vector to a int4 vector by componentwise conversion.
Declaration
public static explicit operator int4(double4 v)
Parameters
Type | Name | Description |
---|---|---|
double4 | v | double4 to convert to int4 |
Returns
Type | Description |
---|---|
int4 | Converted value. |