From 09df1fc9b58f886d3ed0d781d3d0f069c2b6b1a8 Mon Sep 17 00:00:00 2001 From: Hrishikesh Date: Wed, 3 Feb 2021 18:55:39 +0530 Subject: [PATCH] Removed the redundant functions in CameraMatrix.hpp --- include/core/CameraMatrix.hpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/include/core/CameraMatrix.hpp b/include/core/CameraMatrix.hpp index a644b65..dc6b727 100644 --- a/include/core/CameraMatrix.hpp +++ b/include/core/CameraMatrix.hpp @@ -43,12 +43,6 @@ struct CameraMatrix { 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; } - static inline float deg2rad(float p_y) { return p_y * Math_PI / 180.0; } - - static inline double rad2deg(double p_y) { return p_y * 180.0 / Math_PI; } - static inline float rad2deg(float p_y) { return p_y * 180.0 / Math_PI; } - static inline double absd(double g) { union {