QQuaternion::Axis Struct
struct QQuaternion::Axisこの構造体は Qt 6.11 で導入されました。
- 継承されたメンバーを含む、すべてのメンバーの一覧
- Axisは、3Dレンダリングの一部です。
パブリック関数
| QVector3D | toVector3D() const |
パブリック変数
静的パブリックメンバー
| QQuaternion::Axis | fromVector3D(QVector3D v) |
関連する非メンバー
(since 6.11) bool | qFuzzyIsNull(QQuaternion::Axis axis) |
詳細な説明
quaternions からthree (orthonormal) axes までを定義するために使用される、3D 軸を表す構造体。
この構造体自体は、x 、y 、およびz メンバーの値を制限しませんが、この型を使用するQQuaternion 関数では制限される場合があります。特に、Axisオブジェクトは正規化されている必要はありません。
この型は `QVector3D` と非常に似ており、互いに容易に変換できますが、より狭い範囲に焦点を当てています。これは `QVector3D` に対する「強力な typedef」と呼ぶことができます。
QQuaternion::Axesも参照してください 。
メンバ関数のドキュメント
[static constexpr noexcept] QQuaternion::Axis Axis::fromVector3D(QVector3D v)
v から Axis を構築します。これは、あたかも
return Axis{v.x(), v.y(), v.z()}}[constexpr noexcept] QVector3D Axis::toVector3D() const
QVector3DこのAxisを、あたかも
Axis a = *this;
return QVector3D{a.x, a.y, a.z}メンバー変数のドキュメント
float Axis::x
3D軸のx成分が含まれています。
float Axis::y
3D軸のy成分が含まれています。
float Axis::z
3D軸のz成分が含まれています。
関連する非メンバー
[noexcept, since 6.11] bool qFuzzyIsNull(QQuaternion::Axis axis)
axis が縮退している場合、つまり(0, 0, 0) と等しい場合(浮動小数点比較におけるわずかな不確実性を許容する)、true を返します。それ以外の場合はfalse を返します。
この関数は Qt 6.11 で導入されました。
© 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.