asuint
Returns the bit pattern of an int as a uint.
Read time 2 minutesLast updated 12 days ago
Definition
- Type: Method
- Namespace: Unity.Mathematics
- Assembly: UnityEngine.MathematicsModule
asuint(int)
Returns the bit pattern of an int as a uint.
public static uint asuint(int x)
Parameters
The int bits to copy.
Returns
Type | Description |
|---|---|
| uint | The uint with the same bit pattern as the input. |
asuint(int2)
Returns the bit pattern of an int2 as a uint2.
public static uint2 asuint(int2 x)
Parameters
The int2 bits to copy.
Returns
Type | Description |
|---|---|
| uint2 | The uint2 with the same bit pattern as the input. |
asuint(int3)
Returns the bit pattern of an int3 as a uint3.
public static uint3 asuint(int3 x)
Parameters
The int3 bits to copy.
Returns
Type | Description |
|---|---|
| uint3 | The uint3 with the same bit pattern as the input. |
asuint(int4)
Returns the bit pattern of an int4 as a uint4.
public static uint4 asuint(int4 x)
Parameters
The int4 bits to copy.
Returns
Type | Description |
|---|---|
| uint4 | The uint4 with the same bit pattern as the input. |
asuint(float)
Returns the bit pattern of a float as a uint.
public static uint asuint(float x)
Parameters
The float bits to copy.
Returns
Type | Description |
|---|---|
| uint | The uint with the same bit pattern as the input. |
asuint(float2)
Returns the bit pattern of a float2 as a uint2.
public static uint2 asuint(float2 x)
Parameters
The float2 bits to copy.
Returns
Type | Description |
|---|---|
| uint2 | The uint2 with the same bit pattern as the input. |
asuint(float3)
Returns the bit pattern of a float3 as a uint3.
public static uint3 asuint(float3 x)
Parameters
The float3 bits to copy.
Returns
Type | Description |
|---|---|
| uint3 | The uint3 with the same bit pattern as the input. |
asuint(float4)
Returns the bit pattern of a float4 as a uint4.
public static uint4 asuint(float4 x)
Parameters
The float4 bits to copy.
Returns
Type | Description |
|---|---|
| uint4 | The uint4 with the same bit pattern as the input. |