Method asuint
asuint(Int32)
Returns the bit pattern of an int as a uint.
Declaration
public static uint asuint(int x)
Parameters
Type | Name | Description |
---|---|---|
Int32 | x | The int bits to copy. |
Returns
Type | Description |
---|---|
UInt32 | The uint with the same bit pattern as the input. |
asuint(int2)
Returns the bit pattern of an int2 as a uint2.
Declaration
public static uint2 asuint(int2 x)
Parameters
Type | Name | Description |
---|---|---|
int2 | x | 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.
Declaration
public static uint3 asuint(int3 x)
Parameters
Type | Name | Description |
---|---|---|
int3 | x | 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.
Declaration
public static uint4 asuint(int4 x)
Parameters
Type | Name | Description |
---|---|---|
int4 | x | The int4 bits to copy. |
Returns
Type | Description |
---|---|
uint4 | The uint4 with the same bit pattern as the input. |
asuint(Single)
Returns the bit pattern of a float as a uint.
Declaration
public static uint asuint(float x)
Parameters
Type | Name | Description |
---|---|---|
Single | x | The float bits to copy. |
Returns
Type | Description |
---|---|
UInt32 | The uint with the same bit pattern as the input. |
asuint(float2)
Returns the bit pattern of a float2 as a uint2.
Declaration
public static uint2 asuint(float2 x)
Parameters
Type | Name | Description |
---|---|---|
float2 | x | 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.
Declaration
public static uint3 asuint(float3 x)
Parameters
Type | Name | Description |
---|---|---|
float3 | x | 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.
Declaration
public static uint4 asuint(float4 x)
Parameters
Type | Name | Description |
---|---|---|
float4 | x | The float4 bits to copy. |
Returns
Type | Description |
---|---|
uint4 | The uint4 with the same bit pattern as the input. |