diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2015-02-26 17:45:11 +0400 |
---|---|---|
committer | Konstantin Ritt <ritt.ks@gmail.com> | 2015-02-26 20:15:04 +0000 |
commit | 4ed795df247c5859089e3a6b6ca7c24e8c973a31 (patch) | |
tree | 969acbb9d7ac42fc6f196e69523d9e692edce834 /tests/auto/gui/math3d/qmatrixnxn/tst_qmatrixnxn.cpp | |
parent | d07166af645fa65cb7e9f571dbc34eb946463627 (diff) |
Use C++ <cmath> instead of <math.h> in math3d autotests
Change-Id: I2e13ec190ec42ac7732ce9ed3ca5567f637beb1e
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Diffstat (limited to 'tests/auto/gui/math3d/qmatrixnxn/tst_qmatrixnxn.cpp')
-rw-r--r-- | tests/auto/gui/math3d/qmatrixnxn/tst_qmatrixnxn.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/gui/math3d/qmatrixnxn/tst_qmatrixnxn.cpp b/tests/auto/gui/math3d/qmatrixnxn/tst_qmatrixnxn.cpp index a9d8e60046..e7659a25bd 100644 --- a/tests/auto/gui/math3d/qmatrixnxn/tst_qmatrixnxn.cpp +++ b/tests/auto/gui/math3d/qmatrixnxn/tst_qmatrixnxn.cpp @@ -2279,9 +2279,9 @@ void tst_QMatrixNxN::rotate4x4_data() float y = 2.0f; float z = -6.0f; float angle = -45.0f; - float c = qCos(angle * M_PI / 180.0f); - float s = qSin(angle * M_PI / 180.0f); - float len = sqrtf(x * x + y * y + z * z); + float c = std::cos(angle * M_PI / 180.0f); + float s = std::sin(angle * M_PI / 180.0f); + float len = std::sqrt(x * x + y * y + z * z); float xu = x / len; float yu = y / len; float zu = z / len; |