diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2015-02-19 14:22:59 +0400 |
---|---|---|
committer | Konstantin Ritt <ritt.ks@gmail.com> | 2015-02-26 11:02:38 +0000 |
commit | 1872857ca72658cd58c0c39b31da493f794be6ca (patch) | |
tree | fdf62103ad3b1b37879cf04d238d35c8987aadb4 /tests | |
parent | ade2778bee0cb4d0ef797d2069459fc036af851d (diff) |
[QQuaternion] Fix naming of the new methods
According to the Qt naming policy, methods that return value(s) via
the mutable parameter(s) should have "get" prefix to mention that.
[ChangeLog][QtGui][QQuaternion] Added methods to convert a quaternion
to/from Euler angles and to/from rotation matrix.
Change-Id: I95704e1f4623dc4ca54cd237ea203539fb60d452
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/gui/math3d/qquaternion/tst_qquaternion.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/gui/math3d/qquaternion/tst_qquaternion.cpp b/tests/auto/gui/math3d/qquaternion/tst_qquaternion.cpp index 444ccdeb88..a4defcc7f2 100644 --- a/tests/auto/gui/math3d/qquaternion/tst_qquaternion.cpp +++ b/tests/auto/gui/math3d/qquaternion/tst_qquaternion.cpp @@ -727,7 +727,7 @@ void tst_QQuaternion::fromAxisAndAngle() { QVector3D answerAxis; float answerAngle; - answer.toAxisAndAngle(&answerAxis, &answerAngle); + answer.getAxisAndAngle(&answerAxis, &answerAngle); QVERIFY(qFuzzyCompare(answerAxis.x(), vector.x())); QVERIFY(qFuzzyCompare(answerAxis.y(), vector.y())); QVERIFY(qFuzzyCompare(answerAxis.z(), vector.z())); @@ -743,7 +743,7 @@ void tst_QQuaternion::fromAxisAndAngle() { float answerAxisX, answerAxisY, answerAxisZ; float answerAngle; - answer.toAxisAndAngle(&answerAxisX, &answerAxisY, &answerAxisZ, &answerAngle); + answer.getAxisAndAngle(&answerAxisX, &answerAxisY, &answerAxisZ, &answerAngle); QVERIFY(qFuzzyCompare(answerAxisX, vector.x())); QVERIFY(qFuzzyCompare(answerAxisY, vector.y())); QVERIFY(qFuzzyCompare(answerAxisZ, vector.z())); @@ -872,7 +872,7 @@ void tst_QQuaternion::fromEulerAngles() { float answerPitch, answerYaw, answerRoll; - answer.toEulerAngles(&answerPitch, &answerYaw, &answerRoll); + answer.getEulerAngles(&answerPitch, &answerYaw, &answerRoll); QVERIFY(myFuzzyCompareDegrees(answerPitch, pitch)); QVERIFY(myFuzzyCompareDegrees(answerYaw, yaw)); QVERIFY(myFuzzyCompareDegrees(answerRoll, roll)); |