diff options
Diffstat (limited to '')
| -rw-r--r-- | src/hl2h.h | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -11,6 +11,11 @@ | |||
| 11 | #include <pthread.h> | 11 | #include <pthread.h> |
| 12 | #include <unistd.h> | 12 | #include <unistd.h> |
| 13 | 13 | ||
| 14 | // Shared float-precision constant. More digits than a float can hold are | ||
| 15 | // rounded at compile time and have no runtime cost; a coarse value would only | ||
| 16 | // hurt angular accuracy, never performance. | ||
| 17 | constexpr float PI_F = 3.14159265f; | ||
| 18 | |||
| 14 | // --------------------------------------------------------------------------- | 19 | // --------------------------------------------------------------------------- |
| 15 | // logging | 20 | // logging |
| 16 | // --------------------------------------------------------------------------- | 21 | // --------------------------------------------------------------------------- |
