summaryrefslogtreecommitdiffstats
path: root/thirdparty/thorvg/src/common/tvgMath.h
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/thorvg/src/common/tvgMath.h')
-rw-r--r--thirdparty/thorvg/src/common/tvgMath.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/thirdparty/thorvg/src/common/tvgMath.h b/thirdparty/thorvg/src/common/tvgMath.h
index 3555885c8e..668260c689 100644
--- a/thirdparty/thorvg/src/common/tvgMath.h
+++ b/thirdparty/thorvg/src/common/tvgMath.h
@@ -42,6 +42,7 @@
/* General functions */
/************************************************************************/
+float mathAtan2(float y, float x);
static inline float mathDeg2Rad(float degree)
{
@@ -79,7 +80,7 @@ bool operator==(const Matrix& lhs, const Matrix& rhs);
static inline bool mathRightAngle(const Matrix* m)
{
- auto radian = fabsf(atan2f(m->e21, m->e11));
+ auto radian = fabsf(mathAtan2(m->e21, m->e11));
if (radian < FLOAT_EPSILON || mathEqual(radian, MATH_PI2) || mathEqual(radian, MATH_PI)) return true;
return false;
}