diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-11-04 00:56:40 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-11-04 01:40:18 (GMT) |
commit | 79c6049ccaae4434add40d35b3e47a83ff4a102a (patch) | |
tree | b7dc1277998c24780bedb095af94a3ef465d5315 /src/gui/math3d/qquaternion.cpp | |
parent | edc9acd6a0c082b7d6c7810700e77a9d990014c6 (diff) | |
download | Qt-79c6049ccaae4434add40d35b3e47a83ff4a102a.zip Qt-79c6049ccaae4434add40d35b3e47a83ff4a102a.tar.gz Qt-79c6049ccaae4434add40d35b3e47a83ff4a102a.tar.bz2 |
Incorporate API review feedback for math3d classes.
Reviewed-by: Sarah Smith
Diffstat (limited to 'src/gui/math3d/qquaternion.cpp')
-rw-r--r-- | src/gui/math3d/qquaternion.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/math3d/qquaternion.cpp b/src/gui/math3d/qquaternion.cpp index d5ec054..626cb3c 100644 --- a/src/gui/math3d/qquaternion.cpp +++ b/src/gui/math3d/qquaternion.cpp @@ -288,7 +288,7 @@ void QQuaternion::normalize() in 3D space. The following code: \code - QVector3D result = q.rotateVector(vector); + QVector3D result = q.rotatedVector(vector); \endcode is equivalent to the following: @@ -297,7 +297,7 @@ void QQuaternion::normalize() QVector3D result = (q * QQuaternion(0, vector) * q.conjugate()).vector(); \endcode */ -QVector3D QQuaternion::rotateVector(const QVector3D& vector) const +QVector3D QQuaternion::rotatedVector(const QVector3D& vector) const { return (*this * QQuaternion(0, vector) * conjugate()).vector(); } |