|
My Project
|
Compresses floats to a given range with a given precision. http://stackoverflow.com/questions/8382629/compress-floating-point-numbers-with-specified-range-and-precision. More...
Public Member Functions | |
| CompressorFloat (float minValue, float maxValue, float precision) | |
| Default constructor. | |
| CompressorFloat (CompressorFloatConfig config) | |
| Constructor with config. | |
| int | GetRequiredBits () |
| Returns the number of bits required to store values between the specified range with the given precision. | |
| uint | Compress (float value) |
| Compresses the value. | |
| float | Decompress (uint data) |
| Decompresses the value. | |
Compresses floats to a given range with a given precision. http://stackoverflow.com/questions/8382629/compress-floating-point-numbers-with-specified-range-and-precision.