Operator implicit operator
implicit operator float3(float)
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 |
---|---|---|
float | v | float to convert to float3 |
Returns
Type | Description |
---|---|
float3 | Converted value. |
implicit operator float3(int)
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 |
---|---|---|
int | v | int to convert to float3 |
Returns
Type | Description |
---|---|
float3 | Converted value. |
implicit operator float3(int3)
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 operator float3(uint)
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 |
---|---|---|
uint | v | uint to convert to float3 |
Returns
Type | Description |
---|---|
float3 | Converted value. |
implicit operator float3(uint3)
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 operator float3(half)
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 operator float3(half3)
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 operator Vector3(float3)
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 operator float3(Vector3)
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. |