6#include <QtCore/qdatastream.h>
7#include <QtCore/qdebug.h>
8#include <QtCore/qvariant.h>
9#include <QtGui/qmatrix4x4.h>
381#ifndef QT_NO_VECTOR3D
391#ifndef QT_NO_VECTOR4D
426#ifndef QT_NO_DEBUG_STREAM
431 dbg.nospace() <<
"QVector2D(" <<
vector.x() <<
", " <<
vector.y() <<
')';
437#ifndef QT_NO_DATASTREAM
482#ifndef QT_NO_VECTOR3D
536#ifndef QT_NO_VECTOR2D
557#ifndef QT_NO_VECTOR4D
787 tmp = projection * modelView * tmp;
792 tmp = tmp * 0.5f +
QVector4D(0.5f, 0.5f, 0.5f, 0.5f);
822 tmp = tmp * 2.0f -
QVector4D(1.0f, 1.0f, 1.0f, 1.0f);
828 return obj.toVector3D();
988#ifndef QT_NO_VECTOR2D
1000#ifndef QT_NO_VECTOR4D
1055#ifndef QT_NO_DEBUG_STREAM
1060 dbg.nospace() <<
"QVector3D("
1067#ifndef QT_NO_DATASTREAM
1114#ifndef QT_NO_VECTOR4D
1168#ifndef QT_NO_VECTOR2D
1191#ifndef QT_NO_VECTOR3D
1512#ifndef QT_NO_VECTOR2D
1534#ifndef QT_NO_VECTOR3D
1581#ifndef QT_NO_DEBUG_STREAM
1586 dbg.nospace() <<
"QVector4D("
1594#ifndef QT_NO_DATASTREAM
\inmodule QtCore\reentrant
The QMatrix4x4 class represents a 4x4 transformation matrix in 3D space.
QMatrix4x4 inverted(bool *invertible=nullptr) const
Returns the inverse of this matrix.
\inmodule QtCore\reentrant
static auto fromValue(T &&value) noexcept(std::is_nothrow_copy_constructible_v< T > &&Private::CanUseInternalSpace< T >) -> std::enable_if_t< std::conjunction_v< std::is_copy_constructible< T >, std::is_destructible< T > >, QVariant >
The QVector2D class represents a vector or vertex in 2D space.
The QVector3D class represents a vector or vertex in 3D space.
Q_GUI_EXPORT QVector3D project(const QMatrix4x4 &modelView, const QMatrix4x4 &projection, const QRect &viewport) const
Q_GUI_EXPORT QVector3D unproject(const QMatrix4x4 &modelView, const QMatrix4x4 &projection, const QRect &viewport) const
The QVector4D class represents a vector or vertex in 4D space.
constexpr float x() const noexcept
Returns the x coordinate of this point.
constexpr void setY(float y) noexcept
Sets the y coordinate of this point to the given finite y coordinate.
constexpr float w() const noexcept
Returns the w coordinate of this point.
constexpr void setX(float x) noexcept
Sets the x coordinate of this point to the given finite x coordinate.
constexpr float y() const noexcept
Returns the y coordinate of this point.
constexpr QVector3D toVector3D() const noexcept
Returns the 3D vector form of this 4D vector, dropping the w coordinate.
constexpr void setW(float w) noexcept
Sets the w coordinate of this point to the given finite w coordinate.
Combined button and popup list for selecting options.
bool qIsFinite(qfloat16 f) noexcept
bool qFuzzyIsNull(qfloat16 f) noexcept
GLint GLfloat GLfloat GLfloat v2
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat z
GLint GLint GLint GLint GLint x
[0]
GLfloat GLfloat GLfloat w
[0]
QDataStream & operator>>(QDataStream &stream, QVector2D &vector)
QDebug operator<<(QDebug dbg, QVector2D vector)
bool qFuzzyCompare(QVector2D v1, QVector2D v2) noexcept
view viewport() -> scroll(dx, dy, deviceRect)