在本页

QQuaternion::EulerAngles Struct

template <typename T> struct QQuaternion::EulerAngles

此结构在 Qt 6.11 中引入。

公共变量

T pitch
T roll
T yaw

详细说明

该结构体包含三个字段pitchyawroll ,分别代表定义quaternion 的三个欧拉角。

有关应用旋转的顺序,请查阅获取或返回 EulerAngles 对象的函数文档。

另请参阅 QQuaternion::eulerAngles() 和QQuaternion::fromEulerAngles(QQuaternion::EulerAngles<float>) 。

成员变量文档

T EulerAngles::pitch

俯仰表示绕 x 轴的旋转。

T EulerAngles::roll

滚动表示绕 Z 轴旋转。

T EulerAngles::yaw

偏航表示绕 Y 轴旋转。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.