diff options
author | Sven Göthel <[email protected]> | 2024-05-11 04:45:54 +0200 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-05-11 04:45:54 +0200 |
commit | 9bfdef4e315328e92ca34f0a510173a0e2cc7485 (patch) | |
tree | 44fb6e13a2d5d0ee98d8c4787034eaa8ecdd0ea6 /include | |
parent | 89dd1cca4f887593d4e7dada13776278fdb8957c (diff) |
few more dropping for jaulib code
Diffstat (limited to 'include')
-rw-r--r-- | include/gamp/gamp.hpp | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/include/gamp/gamp.hpp b/include/gamp/gamp.hpp index 87065e5..5cd7ab5 100644 --- a/include/gamp/gamp.hpp +++ b/include/gamp/gamp.hpp @@ -41,6 +41,7 @@ #include <jau/environment.hpp> #include <jau/os/os_support.hpp> +#include <jau/float_math.hpp> #include <jau/math/vec2f.hpp> #include <jau/math/vec3f.hpp> @@ -60,25 +61,6 @@ * Basic computer graphics math and utilities helping with the framebuffer and I/O tooling. */ namespace gamp { - /** Returns the rounded float value cast to int. */ - inline constexpr int round_to_int(const float v) noexcept { - return (int)std::round(v); - } - /** Returns the rounded double value cast to int. */ - inline constexpr int round_to_int(const double v) noexcept { - return (int)std::round(v); - } - - /** Converts arc-degree to radians */ - inline constexpr float adeg_to_rad(const float arc_degree) noexcept { - return arc_degree * (float)M_PI / 180.0f; - } - - /** Converts radians to arc-degree */ - inline constexpr float rad_to_adeg(const float rad) noexcept { - return rad * 180.0f / (float)M_PI; - } - /** Width of the window, coordinate in window units. */ extern int win_width; /** Height of the window, coordinate in window units. */ |