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