diff options
| author | hachem <im@hachem.wtf> | 2025-08-18 05:02:13 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2025-08-18 05:02:13 +0200 |
| commit | d34925777dd4fac709096f1c18b7d886b43c15b2 (patch) | |
| tree | fac4c30a28784672c701898ff7612dbdfe530d49 /src/Core/Camera.h | |
| parent | 1ecaea469e86ef3f5d18122c8b2cc187286e27f7 (diff) | |
[fix]: improvements, bump to c++20 and fix bugs
Diffstat (limited to 'src/Core/Camera.h')
| -rw-r--r-- | src/Core/Camera.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/Core/Camera.h b/src/Core/Camera.h index a049d06..a9aec2a 100644 --- a/src/Core/Camera.h +++ b/src/Core/Camera.h @@ -3,10 +3,7 @@ #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> -#define _USE_MATH_DEFINES -#ifndef M_PI -#define M_PI 3.14159265358979323846 -#endif +#include <numbers> namespace Donut { @@ -121,7 +118,7 @@ namespace Donut double m_OrbitalMinRadius = 1e10; double m_OrbitalMaxRadius = 1e12; float m_Azimuth = 0.0f; - float m_Elevation = static_cast<float>(M_PI) / 2.0f; + float m_Elevation = static_cast<float>(std::numbers::pi) / 2.0f; float m_OrbitalSpeed = 0.01f; double m_ZoomSpeed = 25e9f; bool m_Dragging = false; |
