diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2015-01-26 11:16:55 +0400 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2015-01-28 12:37:50 +0000 |
commit | 14419b0a2b63c774e11dec10967495b19540bbb3 (patch) | |
tree | 4a87a3cf6e256b456378c20c5922f15500a9d0f9 /src/gui/math3d/qquaternion.cpp | |
parent | a14559bc781b9ac7c61386bf563e62f6fde27d56 (diff) |
Introduce QQuaternion::inverted()
Change-Id: I6de77082bb7c32e48fb7f7d765a58fdbe68db1fd
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/gui/math3d/qquaternion.cpp')
-rw-r--r-- | src/gui/math3d/qquaternion.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/math3d/qquaternion.cpp b/src/gui/math3d/qquaternion.cpp index f1af8922ca..23409189ac 100644 --- a/src/gui/math3d/qquaternion.cpp +++ b/src/gui/math3d/qquaternion.cpp @@ -274,6 +274,16 @@ void QQuaternion::normalize() } /*! + \fn QQuaternion QQuaternion::inverted() const + \since 5.5 + + Returns the inverse of this quaternion. + If this quaternion is null, then a null quaternion is returned. + + \sa isNull(), length() +*/ + +/*! \fn QQuaternion QQuaternion::conjugate() const Returns the conjugate of this quaternion, which is |