이 페이지에서

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 축을 나타내는 구조체입니다.

이 구조체 자체는 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.