Operator explicit operator
explicit operator float3(bool)
Explicitly converts a single bool value to a float3 vector by converting it to float and assigning it to every component.
Declaration
public static explicit operator float3(bool v)
Parameters
Type | Name | Description |
---|---|---|
bool | v | bool to convert to float3 |
Returns
Type | Description |
---|---|
float3 | Converted value. |
explicit operator float3(bool3)
Explicitly converts a bool3 vector to a float3 vector by componentwise conversion.
Declaration
public static explicit operator float3(bool3 v)
Parameters
Type | Name | Description |
---|---|---|
bool3 | v | bool3 to convert to float3 |
Returns
Type | Description |
---|---|
float3 | Converted value. |
explicit operator float3(double)
Explicitly converts a single double value to a float3 vector by converting it to float and assigning it to every component.
Declaration
public static explicit operator float3(double v)
Parameters
Type | Name | Description |
---|---|---|
double | v | double to convert to float3 |
Returns
Type | Description |
---|---|
float3 | Converted value. |
explicit operator float3(double3)
Explicitly converts a double3 vector to a float3 vector by componentwise conversion.
Declaration
public static explicit operator float3(double3 v)
Parameters
Type | Name | Description |
---|---|---|
double3 | v | double3 to convert to float3 |
Returns
Type | Description |
---|---|
float3 | Converted value. |