explicit operator float4
Explicitly converts a single bool value to a float4 vector by converting it to float and assigning it to every component.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Operator
- Namespace: Unity.Mathematics
- Assembly: UnityEngine.MathematicsModule
explicit operator float4(float)
Explicitly converts a single bool value to a float4 vector by converting it to float and assigning it to every component.
public static explicit operator float4(bool v)
Parameters
bool to convert to float4
Returns
Type | Description |
|---|---|
| float4 | Converted value. |
explicit operator float4(float)
Explicitly converts a bool4 vector to a float4 vector by componentwise conversion.
public static explicit operator float4(bool4 v)
Parameters
bool4 to convert to float4
Returns
Type | Description |
|---|---|
| float4 | Converted value. |
explicit operator float4(float)
Explicitly converts a single double value to a float4 vector by converting it to float and assigning it to every component.
public static explicit operator float4(double v)
Parameters
double to convert to float4
Returns
Type | Description |
|---|---|
| float4 | Converted value. |
explicit operator float4(float)
Explicitly converts a double4 vector to a float4 vector by componentwise conversion.
public static explicit operator float4(double4 v)
Parameters
double4 to convert to float4
Returns
Type | Description |
|---|---|
| float4 | Converted value. |