Operator Explicit
Explicit(Boolean to int4)
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 |
---|---|---|
Boolean | v | bool to convert to int4 |
Returns
Type | Description |
---|---|
int4 | Converted value. |
Explicit(bool4 to int4)
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(UInt32 to int4)
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 |
---|---|---|
UInt32 | v | uint to convert to int4 |
Returns
Type | Description |
---|---|
int4 | Converted value. |
Explicit(uint4 to int4)
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(Single to int4)
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 |
---|---|---|
Single | v | float to convert to int4 |
Returns
Type | Description |
---|---|
int4 | Converted value. |
Explicit(float4 to int4)
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(Double to int4)
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(double4 to int4)
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. |