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