19#include <QtQuick3DUtils/private/qtquick3dutilsglobal_p.h>
20#include <QtGui/QVector3D>
21#include <QtCore/qmath.h>
Representation of a plane.
Q_ALWAYS_INLINE QVector3D pointInPlane() const
find an arbitrary point in the plane
Q_ALWAYS_INLINE QVector3D project(const QVector3D &p) const
projects p into the plane
Q_ALWAYS_INLINE float distance(const QVector3D &p) const
Q_ALWAYS_INLINE QSSGPlane(const QVector3D &point, const QVector3D &normal)
Constructor from a point on the plane and a normal.
Q_ALWAYS_INLINE QSSGPlane(const QVector3D &p0, const QVector3D &p1, const QVector3D &p2)
Constructor from three points.
Q_ALWAYS_INLINE bool contains(const QVector3D &p) const
Q_ALWAYS_INLINE QSSGPlane(const QVector3D &normal, float distance)
Constructor from a normal and a distance.
QVector3D n
The normal to the plane.
Q_ALWAYS_INLINE QSSGPlane(float nx, float ny, float nz, float distance)
Constructor from a normal and a distance.
The QVector3D class represents a vector or vertex in 3D space.
QVector3D normalized() const noexcept
Returns the normalized unit vector form of this vector.
static constexpr float dotProduct(QVector3D v1, QVector3D v2) noexcept
Returns the dot product of v1 and v2.
static constexpr QVector3D crossProduct(QVector3D v1, QVector3D v2) noexcept
Returns the cross-product of vectors v1 and v2, which is normal to the plane spanned by v1 and v2.
Combined button and popup list for selecting options.
constexpr T qAbs(const T &t)
GLsizei GLsizei GLfloat distance
static void normalize(double &x, double &y)