diff options
author | Marc <marc.gilleron@gmail.com> | 2021-06-01 18:08:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-01 18:08:59 +0100 |
commit | 59959b1a5bc8c81800115daf7ec29e01324f7dfd (patch) | |
tree | 2a110c6ea026adf04d78e484d3a26deb3b4fff1d | |
parent | dfee6f0ca41863eacdd47bd3c1c4afa46cc97fa4 (diff) | |
parent | 6e662223aa5fa255716c3763dda28bbdb60e12a4 (diff) | |
download | redot-cpp-59959b1a5bc8c81800115daf7ec29e01324f7dfd.tar.gz |
Merge pull request #566 from DhruvMaroo/master
added inverse trigonometric functions in Math.hpp
-rw-r--r-- | include/core/Math.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/core/Math.hpp b/include/core/Math.hpp index 4cabe0d..e804246 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);
}
|