QQuaternion::Axis Struct
struct QQuaternion::Axisこの構造体は Qt 6.11 で導入されました。
- 継承されたメンバを含む、すべてのメンバのリスト
- Axis は、Rendering in 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 の「強い型定義」と呼んでもよい。
QQuaternion::Axesも参照のこと 。
メンバ関数のドキュメント
[static constexpr noexcept] QQuaternion::Axis Axis::fromVector3D(QVector3D v)
であるかのように、v から軸を構築する。
return Axis{v.x(), v.y(), v.z()}}
[constexpr noexcept] QVector3D Axis::toVector3D() const
この軸をQVector3D として返す。
Axis a = *this; return QVector3D{a.x, a.y, a.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.