From 8558d2360a16e5ee4dcfd9813617f309a4fbb9e7 Mon Sep 17 00:00:00 2001 From: Hrishikesh Date: Wed, 3 Feb 2021 06:32:44 +0530 Subject: Removed redundant function definitions in CameraMatrix and used the ones in Math.hpp --- include/core/CameraMatrix.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/core') 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 @@ -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; } -- cgit v1.2.3