diff options
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 809be48..677cb71 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_orbital_min_radius = 1e10; double m_orbital_max_radius = 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_orbital_speed = 0.01f; double m_zoom_speed = 25e9f; bool m_dragging = false; |
