Struct MathUtils.FloatUnion
Provides a union view of a single-precision floating-point value and its underlying 32-bit unsigned integer representation.
public struct MathUtils.FloatUnion
Remarks
This struct allows bit-level inspection and manipulation of a float value by exposing its raw binary representation as a uint.
Fields
- FloatValue
Represents the value of the field as a single-precision floating-point number.
- IntValue
Represents the integer value stored at the specified memory offset.
- UIntValue
Represents the value of the field as an unsigned 32-bit integer.
Methods
- AsInt(float)
Converts the specified single-precision floating-point number to its equivalent 32-bit integer representation.
- AsUInt(float)
Converts the specified single-precision floating-point number to its equivalent 32-bit unsigned integer representation.