QQuaternion::Axis Struct
struct QQuaternion::Axis이 구조체는 Qt 6.11에 도입되었습니다.
- 상속된 멤버를 포함한 모든 멤버 목록
- 축은 3D 렌더링의 일부입니다.
공용 함수
| QVector3D | toVector3D() const |
공용 변수
정적 공용 멤버
| QQuaternion::Axis | fromVector3D(QVector3D v) |
관련 비회원
(since 6.11) bool | qFuzzyIsNull(QQuaternion::Axis axis) |
상세 설명
three (orthonormal) axes 을 통해 quaternions 을 정의하는 데 사용되는 3D 축을 나타내는 구조체입니다.
구조체 자체는 x, y 및 z 멤버의 값을 제한하지 않지만, 이 유형을 사용하는 QQuaternion 함수는 제한할 수 있습니다. 특히 축 객체는 정규화할 필요가 없습니다.
이 타입은 쉽게 변환할 수 있는 QVector3D 과 매우 유사하지만 초점이 더 좁습니다. QVector3D 에 대해 "강력한 typedef"라고 부를 수 있습니다.
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.