Operator Implicit
Implicit(Double to double2)
Implicitly converts a single double value to a double2 vector by assigning it to every component.
Declaration
public static implicit operator double2(double v)
Parameters
Type | Name | Description |
---|---|---|
Double | v | double to convert to double2 |
Returns
Type | Description |
---|---|
double2 | Converted value. |
Implicit(Int32 to double2)
Implicitly converts a single int value to a double2 vector by converting it to double and assigning it to every component.
Declaration
public static implicit operator double2(int v)
Parameters
Type | Name | Description |
---|---|---|
Int32 | v | int to convert to double2 |
Returns
Type | Description |
---|---|
double2 | Converted value. |
Implicit(int2 to double2)
Implicitly converts a int2 vector to a double2 vector by componentwise conversion.
Declaration
public static implicit operator double2(int2 v)
Parameters
Type | Name | Description |
---|---|---|
int2 | v | int2 to convert to double2 |
Returns
Type | Description |
---|---|
double2 | Converted value. |
Implicit(UInt32 to double2)
Implicitly converts a single uint value to a double2 vector by converting it to double and assigning it to every component.
Declaration
public static implicit operator double2(uint v)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | v | uint to convert to double2 |
Returns
Type | Description |
---|---|
double2 | Converted value. |
Implicit(uint2 to double2)
Implicitly converts a uint2 vector to a double2 vector by componentwise conversion.
Declaration
public static implicit operator double2(uint2 v)
Parameters
Type | Name | Description |
---|---|---|
uint2 | v | uint2 to convert to double2 |
Returns
Type | Description |
---|---|
double2 | Converted value. |
Implicit(half to double2)
Implicitly converts a single half value to a double2 vector by converting it to double and assigning it to every component.
Declaration
public static implicit operator double2(half v)
Parameters
Type | Name | Description |
---|---|---|
half | v | half to convert to double2 |
Returns
Type | Description |
---|---|
double2 | Converted value. |
Implicit(half2 to double2)
Implicitly converts a half2 vector to a double2 vector by componentwise conversion.
Declaration
public static implicit operator double2(half2 v)
Parameters
Type | Name | Description |
---|---|---|
half2 | v | half2 to convert to double2 |
Returns
Type | Description |
---|---|
double2 | Converted value. |
Implicit(Single to double2)
Implicitly converts a single float value to a double2 vector by converting it to double and assigning it to every component.
Declaration
public static implicit operator double2(float v)
Parameters
Type | Name | Description |
---|---|---|
Single | v | float to convert to double2 |
Returns
Type | Description |
---|---|
double2 | Converted value. |
Implicit(float2 to double2)
Implicitly converts a float2 vector to a double2 vector by componentwise conversion.
Declaration
public static implicit operator double2(float2 v)
Parameters
Type | Name | Description |
---|---|---|
float2 | v | float2 to convert to double2 |
Returns
Type | Description |
---|---|
double2 | Converted value. |