diff options
Diffstat (limited to 'include/core/CameraMatrix.hpp')
-rw-r--r-- | include/core/CameraMatrix.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/core/CameraMatrix.hpp b/include/core/CameraMatrix.hpp index d9bff7f..a644b65 100644 --- a/include/core/CameraMatrix.hpp +++ b/include/core/CameraMatrix.hpp @@ -5,6 +5,7 @@ #include "Plane.hpp" #include "Rect2.hpp" #include "Transform.hpp" +#include "Math.hpp" #include <vector> @@ -39,7 +40,7 @@ struct CameraMatrix { static real_t get_fovy(real_t p_fovx, real_t p_aspect) { - return rad2deg(atan(p_aspect * tan(deg2rad(p_fovx) * 0.5)) * 2.0); + return Math::rad2deg(atan(p_aspect * tan(Math::deg2rad(p_fovx) * 0.5)) * 2.0); } static inline double deg2rad(double p_y) { return p_y * Math_PI / 180.0; } |