| Parameter | Description |
|---|---|
| x | The constructed vector's x component will be set to this value. |
| y | The constructed vector's y component will be set to this value. |
Constructs a int2 vector from two int values.
| Parameter | Description |
|---|---|
| xy | The constructed vector's xy components will be set to this value. |
Constructs a int2 vector from an int2 vector.
| Parameter | Description |
|---|---|
| v | int to convert to int2 |
Constructs a int2 vector from a single int value by assigning it to every component.
| Parameter | Description |
|---|---|
| v | bool to convert to int2 |
Constructs a int2 vector from a single bool value by converting it to int and assigning it to every component.
| Parameter | Description |
|---|---|
| v | bool2 to convert to int2 |
Constructs a int2 vector from a bool2 vector by componentwise conversion.
| Parameter | Description |
|---|---|
| v | uint to convert to int2 |
Constructs a int2 vector from a single uint value by converting it to int and assigning it to every component.
| Parameter | Description |
|---|---|
| v | uint2 to convert to int2 |
Constructs a int2 vector from a uint2 vector by componentwise conversion.
| Parameter | Description |
|---|---|
| v | float to convert to int2 |
Constructs a int2 vector from a single float value by converting it to int and assigning it to every component.
| Parameter | Description |
|---|---|
| v | float2 to convert to int2 |
Constructs a int2 vector from a float2 vector by componentwise conversion.
| Parameter | Description |
|---|---|
| v | double to convert to int2 |
Constructs a int2 vector from a single double value by converting it to int and assigning it to every component.
| Parameter | Description |
|---|---|
| v | double2 to convert to int2 |
Constructs a int2 vector from a double2 vector by componentwise conversion.