Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
12//! [0]
13QVector3D result = q.rotatedVector(vector);
14//! [0]
15
16Q_UNUSED(result);
17} // wrapper0
18
19
20void wrapper1() {
21
22//! [1]
23QVector3D result = (q * QQuaternion(0, vector) * q.conjugated()).vector();
24//! [1]
25
26Q_UNUSED(result);
27} // wrapper1
28} // src_gui_math3d_qquaternion