implicit operator double4
Implicitly converts a single double value to a double4 vector by assigning it to every component.
Read time 2 minutesLast updated 10 days ago
Definition
- Type: Operator
- Namespace: Unity.Mathematics
- Assembly: UnityEngine.MathematicsModule
implicit operator double4(double)
Implicitly converts a single double value to a double4 vector by assigning it to every component.
public static implicit operator double4(double v)
Parameters
double to convert to double4
Returns
Type | Description |
|---|---|
| double4 | Converted value. |
implicit operator double4(double)
Implicitly converts a single int value to a double4 vector by converting it to double and assigning it to every component.
public static implicit operator double4(int v)
Parameters
int to convert to double4
Returns
Type | Description |
|---|---|
| double4 | Converted value. |
implicit operator double4(double)
Implicitly converts a int4 vector to a double4 vector by componentwise conversion.
public static implicit operator double4(int4 v)
Parameters
int4 to convert to double4
Returns
Type | Description |
|---|---|
| double4 | Converted value. |
implicit operator double4(double)
Implicitly converts a single uint value to a double4 vector by converting it to double and assigning it to every component.
public static implicit operator double4(uint v)
Parameters
uint to convert to double4
Returns
Type | Description |
|---|---|
| double4 | Converted value. |
implicit operator double4(double)
Implicitly converts a uint4 vector to a double4 vector by componentwise conversion.
public static implicit operator double4(uint4 v)
Parameters
uint4 to convert to double4
Returns
Type | Description |
|---|---|
| double4 | Converted value. |
implicit operator double4(double)
Implicitly converts a single half value to a double4 vector by converting it to double and assigning it to every component.
public static implicit operator double4(half v)
Parameters
half to convert to double4
Returns
Type | Description |
|---|---|
| double4 | Converted value. |
implicit operator double4(double)
Implicitly converts a half4 vector to a double4 vector by componentwise conversion.
public static implicit operator double4(half4 v)
Parameters
half4 to convert to double4
Returns
Type | Description |
|---|---|
| double4 | Converted value. |
implicit operator double4(double)
Implicitly converts a single float value to a double4 vector by converting it to double and assigning it to every component.
public static implicit operator double4(float v)
Parameters
float to convert to double4
Returns
Type | Description |
|---|---|
| double4 | Converted value. |
implicit operator double4(double)
Implicitly converts a float4 vector to a double4 vector by componentwise conversion.
public static implicit operator double4(float4 v)
Parameters
float4 to convert to double4
Returns
Type | Description |
|---|---|
| double4 | Converted value. |