6#include <private/qssgutils_p.h>
61 for (
const QVector3D& point : pointsPrevious)
70 direction.y() > 0 ? halfExtents.
y() : -halfExtents.
y(),
The QMatrix4x4 class represents a 4x4 transformation matrix in 3D space.
QPoint map(const QPoint &point) const
Maps point by multiplying this matrix by point.
Class representing 3D range or axis aligned bounding box.
static Q_ALWAYS_INLINE QSSGBounds3 boundsOfPoints(const QVector3D &v0, const QVector3D &v1)
returns the AABB containing v0 and v1.
Q_ALWAYS_INLINE float extents(quint32 axis) const
get component of the box's extents along a given axis
Q_DECL_CONSTEXPR Q_ALWAYS_INLINE QSSGBounds3()
Default constructor, using empty bounds.
Q_ALWAYS_INLINE QVector3D extents() const
returns the extents, which are half of the width/height/depth.
Q_ALWAYS_INLINE QVector3D center() const
returns the center of this axis aligned box.
QVector3D getSupport(const QVector3D &direction) const
Q_ALWAYS_INLINE void setEmpty()
Sets empty to true.
Q_ALWAYS_INLINE QSSGBoxPoints toQSSGBoxPointsNoEmptyCheck() const
void include(const QVector3D &v)
expands the volume to include v
static Q_ALWAYS_INLINE QSSGBounds3 basisExtent(const QVector3D ¢er, const QMatrix3x3 &basis, const QVector3D &extent)
Construct from center, extent, and (not necessarily orthogonal) basis.
Q_ALWAYS_INLINE bool isEmpty() const
static QSSGBounds3 transform(const QMatrix3x3 &matrix, const QSSGBounds3 &bounds)
gets the transformed bounds of the passed AABB (resulting in a bigger AABB).
The QVector3D class represents a vector or vertex in 3D space.
constexpr float y() const noexcept
Returns the y coordinate of this point.
constexpr float x() const noexcept
Returns the x coordinate of this point.
constexpr float z() const noexcept
Returns the z coordinate of this point.
Combined button and popup list for selecting options.
QVector3D Q_QUICK3DUTILS_EXPORT transform(const QMatrix3x3 &m, const QVector3D &v)
QVector3D minimum(const QVector3D &v1, const QVector3D &v2) Q_DECL_NOTHROW
QVector3D maximum(const QVector3D &v1, const QVector3D &v2) Q_DECL_NOTHROW
bool Q_QUICK3DUTILS_EXPORT isFinite(const QVector3D &v)
constexpr T qAbs(const T &t)
GLboolean GLboolean GLboolean b
GLsizei const GLfloat * v
[13]
GLfloat GLfloat GLfloat w
[0]