From 5128858b1e9b4c0e5275e11fbef7bac1fd445130 Mon Sep 17 00:00:00 2001 From: DhruvMaroo Date: Sun, 30 May 2021 11:45:47 +0530 Subject: [PATCH 1/4] added inverse trigonometric functions in Math.hpp --- include/core/Math.hpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/include/core/Math.hpp b/include/core/Math.hpp index 4cabe0d..2d82308 100644 --- a/include/core/Math.hpp +++ b/include/core/Math.hpp @@ -52,6 +52,27 @@ inline float tan(float p_x) { return ::tanf(p_x); } +inline double asin(double p_x) { + return ::asin(p_x); +} +inline float asin(float p_x) { + return ::asinf(p_x); +} + +inline double acos(double p_x) { + return ::acos(p_x); +} +inline float acos(float p_x) { + return ::acosf(p_x); +} + +inline double atan(double p_x) { + return ::atan(p_x); +} +inline float atan(float p_x) { + return ::atanf(p_x); +} + inline double atan2(double p_y, double p_x) { return ::atan2(p_y, p_x); } From 8ef2e4f1396723427f3d374e55573a4cee052b4f Mon Sep 17 00:00:00 2001 From: DhruvMaroo Date: Sun, 30 May 2021 12:22:45 +0530 Subject: [PATCH 2/4] Revert "added inverse trigonometric functions in Math.hpp" This reverts commit 5128858b1e9b4c0e5275e11fbef7bac1fd445130. --- include/core/Math.hpp | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/include/core/Math.hpp b/include/core/Math.hpp index 2d82308..4cabe0d 100644 --- a/include/core/Math.hpp +++ b/include/core/Math.hpp @@ -52,27 +52,6 @@ inline float tan(float p_x) { return ::tanf(p_x); } -inline double asin(double p_x) { - return ::asin(p_x); -} -inline float asin(float p_x) { - return ::asinf(p_x); -} - -inline double acos(double p_x) { - return ::acos(p_x); -} -inline float acos(float p_x) { - return ::acosf(p_x); -} - -inline double atan(double p_x) { - return ::atan(p_x); -} -inline float atan(float p_x) { - return ::atanf(p_x); -} - inline double atan2(double p_y, double p_x) { return ::atan2(p_y, p_x); } From c296e9210bdb723c54cc0cac173f268545f26f3c Mon Sep 17 00:00:00 2001 From: DhruvMaroo Date: Sun, 30 May 2021 12:23:39 +0530 Subject: [PATCH 3/4] Revert "Revert "added inverse trigonometric functions in Math.hpp"" This reverts commit 8ef2e4f1396723427f3d374e55573a4cee052b4f. --- include/core/Math.hpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/include/core/Math.hpp b/include/core/Math.hpp index 4cabe0d..2d82308 100644 --- a/include/core/Math.hpp +++ b/include/core/Math.hpp @@ -52,6 +52,27 @@ inline float tan(float p_x) { return ::tanf(p_x); } +inline double asin(double p_x) { + return ::asin(p_x); +} +inline float asin(float p_x) { + return ::asinf(p_x); +} + +inline double acos(double p_x) { + return ::acos(p_x); +} +inline float acos(float p_x) { + return ::acosf(p_x); +} + +inline double atan(double p_x) { + return ::atan(p_x); +} +inline float atan(float p_x) { + return ::atanf(p_x); +} + inline double atan2(double p_y, double p_x) { return ::atan2(p_y, p_x); } From 6e662223aa5fa255716c3763dda28bbdb60e12a4 Mon Sep 17 00:00:00 2001 From: DhruvMaroo Date: Sun, 30 May 2021 22:15:37 +0530 Subject: [PATCH 4/4] changed spaces to tabs --- include/core/Math.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/core/Math.hpp b/include/core/Math.hpp index 2d82308..e804246 100644 --- a/include/core/Math.hpp +++ b/include/core/Math.hpp @@ -53,24 +53,24 @@ inline float tan(float p_x) { } inline double asin(double p_x) { - return ::asin(p_x); + return ::asin(p_x); } inline float asin(float p_x) { - return ::asinf(p_x); + return ::asinf(p_x); } inline double acos(double p_x) { - return ::acos(p_x); + return ::acos(p_x); } inline float acos(float p_x) { - return ::acosf(p_x); + return ::acosf(p_x); } inline double atan(double p_x) { - return ::atan(p_x); + return ::atan(p_x); } inline float atan(float p_x) { - return ::atanf(p_x); + return ::atanf(p_x); } inline double atan2(double p_y, double p_x) {