Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
src_gui_math3d_qquaternion.cpp
Go to the documentation of this file.
1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3#include <QQuaternion>
4#include <QVector3D>
5
6
10void wrapper0() {
11
13QVector3D result = q.rotatedVector(vector);
15
17} // wrapper0
18
19
20void wrapper1() {
21
23QVector3D result = (q * QQuaternion(0, vector) * q.conjugated()).vector();
25
27} // wrapper1
28} // src_gui_math3d_qquaternion
The QQuaternion class represents a quaternion consisting of a vector and scalar.
The QVector3D class represents a vector or vertex in 3D space.
Definition qvectornd.h:171
GLdouble GLdouble GLdouble GLdouble q
Definition qopenglext.h:259
GLuint64EXT * result
[6]
#define Q_UNUSED(x)