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