Merge pull request #566 from DhruvMaroo/master

added inverse trigonometric functions in Math.hpp
pull/529/head
Marc 2021-06-01 18:08:59 +01:00 committed by GitHub
commit 59959b1a5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 0 deletions

View File

@ -52,6 +52,27 @@ inline float tan(float p_x) {
return ::tanf(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) { inline double atan2(double p_y, double p_x) {
return ::atan2(p_y, p_x); return ::atan2(p_y, p_x);
} }