uint2
Returns a uint2 vector constructed from two uint values.
Read time 2 minutesLast updated 4 days ago
Definition
- Type: Method
- Namespace: Unity.Mathematics
- Assembly: UnityEngine.MathematicsModule
uint2(uint, uint)
Returns a uint2 vector constructed from two uint values.
public static uint2 uint2(uint x, uint y)
Parameters
Returns
Type | Description |
|---|---|
| uint2 | uint2 constructed from arguments. |
uint2(uint2)
Returns a uint2 vector constructed from a uint2 vector.
public static uint2 uint2(uint2 xy)
Parameters
The constructed vector's xy components will be set to this value.
Returns
Type | Description |
|---|---|
| uint2 | uint2 constructed from arguments. |
uint2(uint)
Returns a uint2 vector constructed from a single uint value by assigning it to every component.
public static uint2 uint2(uint v)
Parameters
uint to convert to uint2
Returns
Type | Description |
|---|---|
| uint2 | Converted value. |
uint2(bool)
Returns a uint2 vector constructed from a single bool value by converting it to uint and assigning it to every component.
public static uint2 uint2(bool v)
Parameters
bool to convert to uint2
Returns
Type | Description |
|---|---|
| uint2 | Converted value. |
uint2(bool2)
Return a uint2 vector constructed from a bool2 vector by componentwise conversion.
public static uint2 uint2(bool2 v)
Parameters
bool2 to convert to uint2
Returns
Type | Description |
|---|---|
| uint2 | Converted value. |
uint2(int)
Returns a uint2 vector constructed from a single int value by converting it to uint and assigning it to every component.
public static uint2 uint2(int v)
Parameters
int to convert to uint2
Returns
Type | Description |
|---|---|
| uint2 | Converted value. |
uint2(int2)
Return a uint2 vector constructed from a int2 vector by componentwise conversion.
public static uint2 uint2(int2 v)
Parameters
int2 to convert to uint2
Returns
Type | Description |
|---|---|
| uint2 | Converted value. |
uint2(float)
Returns a uint2 vector constructed from a single float value by converting it to uint and assigning it to every component.
public static uint2 uint2(float v)
Parameters
float to convert to uint2
Returns
Type | Description |
|---|---|
| uint2 | Converted value. |
uint2(float2)
Return a uint2 vector constructed from a float2 vector by componentwise conversion.
public static uint2 uint2(float2 v)
Parameters
float2 to convert to uint2
Returns
Type | Description |
|---|---|
| uint2 | Converted value. |
uint2(double)
Returns a uint2 vector constructed from a single double value by converting it to uint and assigning it to every component.
public static uint2 uint2(double v)
Parameters
double to convert to uint2
Returns
Type | Description |
|---|---|
| uint2 | Converted value. |
uint2(double2)
Return a uint2 vector constructed from a double2 vector by componentwise conversion.
public static uint2 uint2(double2 v)
Parameters
double2 to convert to uint2
Returns
Type | Description |
|---|---|
| uint2 | Converted value. |