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