![]() |
DDNet documentation
|
#include <cmath>#include <concepts>#include <cstdlib>#include <limits>Go to the source code of this file.
Classes | |
| class | fxp |
Concepts | |
| concept | Numeric |
Functions | |
| constexpr int | round_to_int (float f) |
| constexpr int | round_truncate (float f) |
| template<typename T, typename TB> | |
| constexpr T | mix (const T a, const T b, TB amount) |
| template<typename T, typename TB> | |
| constexpr T | bezier (const T p0, const T p1, const T p2, const T p3, TB amount) |
| template<typename T, typename TB> | |
| constexpr T | mix_polynomial (const TB time[], const T data[], int samples, TB amount, T init) |
| float | random_float () |
| float | random_float (float min, float max) |
| float | random_float (float max) |
| float | random_angle () |
| constexpr int | f2fx (float v) |
| constexpr float | fx2f (int v) |
| constexpr int | i2fx (int v) |
| constexpr int | fx2i (int v) |
| template<typename T> | |
| constexpr T | absolute (T a) |
| template<Numeric T> | |
| constexpr bool | in_range (T a, T lower, T upper) |
| template<Numeric T> | |
| constexpr bool | in_range (T a, T upper) |
Variables | |
| constexpr float | pi = 3.1415926535897932384626433f |
| constexpr float | normalized_golden_angle = 137.50776f / 360.0f |
| constexpr int | fxpscale = 1 << 10 |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
inline |
|
inline |
|
inline |
|
inline |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |