implicit operator int2(int)
Implicitly converts a single int value to a int2 vector by assigning it to every component.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Operator
- Namespace: Unity.Mathematics
- Assembly: UnityEngine.MathematicsModule
public static implicit operator int2(int v)
Parameters
int to convert to int2
Returns
Type | Description |
|---|---|
| int2 | Converted value. |