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