Functions | |
| float | Interpolate (float x1, float x2, float ratio) |
| Calculates the linear interpolation between two float numbers, given the position between them. | |
| bool | isPowerOf2 (int x) |
| Tells whether the given positive integer is a perfect power of two or not. | |
| int | log2i (int x) |
| Calculates the exponent of the maximum exact power of 2 that is less or equal to x. | |
| float | log_n (float x, float n) |
| Calculates the n-based logarithm of a floating-point number. | |
| int | max (int a, int b) |
| Calculates fast maximum between two integers numbers. | |
| int | min (int a, int b) |
| Calculates fast minimum between two integers numbers. | |
| float | ms2hz (float ms) |
| Calculates the frequency cycle in Hz, given the frequency length in milliseconds. | |
| float | ms2samples (float ms, float samplerate) |
| Converts milliseconds to number of samples, given the samplerate. | |
This namespace is used to avoid name conflicts with standard routines such as max and min.
|
||||||||||||||||
|
Calculates the linear interpolation between two float numbers, given the position between them.
Definition at line 212 of file MathInlines.h.
|
|
|
Tells whether the given positive integer is a perfect power of two or not.
Definition at line 146 of file MathInlines.h.
|
|
|
Calculates the exponent of the maximum exact power of 2 that is less or equal to x.
Definition at line 189 of file MathInlines.h.
|
|
||||||||||||
|
Calculates the n-based logarithm of a floating-point number.
Definition at line 169 of file MathInlines.h.
|
|
||||||||||||
|
Calculates fast maximum between two integers numbers.
Definition at line 131 of file MathInlines.h.
|
|
||||||||||||
|
Calculates fast minimum between two integers numbers.
Definition at line 107 of file MathInlines.h.
|
|
|
Calculates the frequency cycle in Hz, given the frequency length in milliseconds.
Definition at line 83 of file MathInlines.h.
|
|
||||||||||||
|
Converts milliseconds to number of samples, given the samplerate.
Definition at line 66 of file MathInlines.h.
|
1.4.5