From 9bfdef4e315328e92ca34f0a510173a0e2cc7485 Mon Sep 17 00:00:00 2001 From: Sven Göthel Date: Sat, 11 May 2024 04:45:54 +0200 Subject: few more dropping for jaulib code --- include/gamp/gamp.hpp | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'include') 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 #include +#include #include #include @@ -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. */ -- cgit v1.2.3