implicit operator float2x2
Implicitly converts a single float value to a float2x2 matrix by assigning it to every component.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Operator
- Namespace: Unity.Mathematics
- Assembly: UnityEngine.MathematicsModule
implicit operator float2x2(float2x)
Implicitly converts a single float value to a float2x2 matrix by assigning it to every component.
public static implicit operator float2x2(float v)
Parameters
float to convert to float2x2
Returns
Type | Description |
|---|---|
| float2x2 | Converted value. |
implicit operator float2x2(float2x)
Implicitly converts a single int value to a float2x2 matrix by converting it to float and assigning it to every component.
public static implicit operator float2x2(int v)
Parameters
int to convert to float2x2
Returns
Type | Description |
|---|---|
| float2x2 | Converted value. |
implicit operator float2x2(float2x)
Implicitly converts a int2x2 matrix to a float2x2 matrix by componentwise conversion.
public static implicit operator float2x2(int2x2 v)
Parameters
int2x2 to convert to float2x2
Returns
Type | Description |
|---|---|
| float2x2 | Converted value. |
implicit operator float2x2(float2x)
Implicitly converts a single uint value to a float2x2 matrix by converting it to float and assigning it to every component.
public static implicit operator float2x2(uint v)
Parameters
uint to convert to float2x2
Returns
Type | Description |
|---|---|
| float2x2 | Converted value. |
implicit operator float2x2(float2x)
Implicitly converts a uint2x2 matrix to a float2x2 matrix by componentwise conversion.
public static implicit operator float2x2(uint2x2 v)
Parameters
uint2x2 to convert to float2x2
Returns
Type | Description |
|---|---|
| float2x2 | Converted value. |