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