QQuaternion::Axis Struct
struct QQuaternion::AxisEsta estructura se introdujo en Qt 6.11.
- Lista de todos los miembros, incluyendo los heredados
- Axis es parte de Renderizado en 3D.
Funciones Públicas
| QVector3D | toVector3D() const |
Variables Públicas
Miembros Públicos Estáticos
| QQuaternion::Axis | fromVector3D(QVector3D v) |
No miembros relacionados
(since 6.11) bool | qFuzzyIsNull(QQuaternion::Axis axis) |
Descripción detallada
Estructura que representa un eje 3D utilizado para definir quaternions, a través de three (orthonormal) axes.
La estructura en sí no restringe los valores de sus miembros x, y y z, aunque las funciones QQuaternion que utilizan este tipo sí pueden hacerlo. En particular, los objetos Axis no necesitan estar normalizados.
Este tipo es muy similar a QVector3D, hacia y desde el cual puede convertirse fácilmente, pero tiene un enfoque más estrecho. Puede llamarse un "strong typedef" para QVector3D.
Véase también QQuaternion::Axes.
Documentación de funciones miembro
[static constexpr noexcept] QQuaternion::Axis Axis::fromVector3D(QVector3D v)
Construye un Eje a partir de v, como si fuera por
return Axis{v.x(), v.y(), v.z()}}
[constexpr noexcept] QVector3D Axis::toVector3D() const
Devuelve este Eje como QVector3D, como por
Axis a = *this; return QVector3D{a.x, a.y, a.z}
Documentación de la variable miembro
float Axis::x
Contiene el componente x del eje 3D.
float Axis::y
Contiene el componente y del eje 3D.
float Axis::z
Contiene el componente z del eje 3D.
No miembros relacionados
[noexcept, since 6.11] bool qFuzzyIsNull(QQuaternion::Axis axis)
Devuelve true si axis es degenerado, es decir, igual a (0, 0, 0), permitiendo un pequeño factor de imprecisión para comparaciones de punto flotante; false en caso contrario.
Esta función se introdujo en 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.