|
static float | Unquantize (byte *data, bool pair, int scale) |
|
static double | Clamp (this double value, double min, double max) |
|
◆ Clamp()
static double BrawlLib.Internal.DoubleExtension.Clamp |
( |
this double |
value, |
|
|
double |
min, |
|
|
double |
max |
|
) |
| |
|
inlinestatic |
24 {
25 return value <= min ? min : value >= max ? max : value;
26 }
◆ Unquantize()
static float BrawlLib.Internal.DoubleExtension.Unquantize |
( |
byte * |
data, |
|
|
bool |
pair, |
|
|
int |
scale |
|
) |
| |
|
inlinestatic |
13 {
14 float value;
15
16 float scaleVal = scale < 32 ? 1.0f / _quantTable[scale] : _quantTable[64 - scale];
17
18 value = data[0] * scaleVal;
19
20 return value;
21 }
The documentation for this class was generated from the following file:
- BrawlLib/Internal/DoubleExtension.cs