このページでは

QQuaternion::Axis Struct

struct QQuaternion::Axis

この構造体は Qt 6.11 で導入されました。

パブリック関数

QVector3D toVector3D() const

パブリック変数

float x
float y
float z

静的パブリックメンバー

QQuaternion::Axis fromVector3D(QVector3D v)
(since 6.11) bool qFuzzyIsNull(QQuaternion::Axis axis)

詳細説明

quaternions からthree (orthonormal) axes を定義するために使用される、3D軸を表す構造体。

この構造体自体は、xyz メンバの値を制約しませんが、この型を使用する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}

メンバ変数ドキュメント

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.