ドキュメント

Unity Engine

Unity Engine

asfloat

Returns the bit pattern of an int as a float.
読み終わるまでの所要時間 2 分最終更新 1ヶ月前

Definition

asfloat(int)

Returns the bit pattern of an int as a float.
public static float asfloat(int x)

Parameters

The int bits to copy.

Returns

Type

Description

floatThe float with the same bit pattern as the input.

asfloat(int2)

Returns the bit pattern of an int2 as a float2.
public static float2 asfloat(int2 x)

Parameters

The int2 bits to copy.

Returns

Type

Description

float2The float2 with the same bit pattern as the input.

asfloat(int3)

Returns the bit pattern of an int3 as a float3.
public static float3 asfloat(int3 x)

Parameters

The int3 bits to copy.

Returns

Type

Description

float3The float3 with the same bit pattern as the input.

asfloat(int4)

Returns the bit pattern of an int4 as a float4.
public static float4 asfloat(int4 x)

Parameters

The int4 bits to copy.

Returns

Type

Description

float4The float4 with the same bit pattern as the input.

asfloat(uint)

Returns the bit pattern of a uint as a float.
public static float asfloat(uint x)

Parameters

The uint bits to copy.

Returns

Type

Description

floatThe float with the same bit pattern as the input.

asfloat(uint2)

Returns the bit pattern of a uint2 as a float2.
public static float2 asfloat(uint2 x)

Parameters

The uint2 bits to copy.

Returns

Type

Description

float2The float2 with the same bit pattern as the input.

asfloat(uint3)

Returns the bit pattern of a uint3 as a float3.
public static float3 asfloat(uint3 x)

Parameters

The uint3 bits to copy.

Returns

Type

Description

float3The float3 with the same bit pattern as the input.

asfloat(uint4)

Returns the bit pattern of a uint4 as a float4.
public static float4 asfloat(uint4 x)

Parameters

The uint4 bits to copy.

Returns

Type

Description

float4The float4 with the same bit pattern as the input.