本页内容

QQuaternion::EulerAngles Struct

template <typename T> struct QQuaternion::EulerAngles

该结构体在 Qt 6.11 中引入。

公共变量

T pitch
T roll
T yaw

详细说明

EulerAngles<T> 是一个结构体模板,其中T 指定了用于角度值的浮点类型(通常为float )。

该结构体包含三个字段pitch 、yaw 和roll ,分别代表定义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.