summaryrefslogtreecommitdiffstats
path: root/include/core/Math.hpp
diff options
context:
space:
mode:
authorDhruvMaroo <dhruvmaru007@gmail.com>2021-05-30 12:23:39 +0530
committerDhruvMaroo <dhruvmaru007@gmail.com>2021-05-30 12:23:39 +0530
commitc296e9210bdb723c54cc0cac173f268545f26f3c (patch)
tree2b7f4485c798e2c52fa0663e203c4a2cc5f8265e /include/core/Math.hpp
parent8ef2e4f1396723427f3d374e55573a4cee052b4f (diff)
downloadredot-cpp-c296e9210bdb723c54cc0cac173f268545f26f3c.tar.gz
Revert "Revert "added inverse trigonometric functions in Math.hpp""
This reverts commit 8ef2e4f1396723427f3d374e55573a4cee052b4f.
Diffstat (limited to 'include/core/Math.hpp')
-rw-r--r--include/core/Math.hpp21
1 files changed, 21 insertions, 0 deletions
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);
}