5#ifndef QSSG_RENDER_CLIPPING_PLANE_H
6#define QSSG_RENDER_CLIPPING_PLANE_H
19#include <QtQuick3DUtils/private/qssgplane_p.h>
20#include <QtQuick3DUtils/private/qssgbounds3_p.h>
21#include <QtQuick3DRuntimeRender/private/qtquick3druntimerenderexports_p.h>
59 float distanceOfPoint =
distance(pointOnPlane);
66 float t = (numerator / denominator);
69 float retvalDistance =
distance(retval);
133 ret = mPlanes[idx].intersectSimple(bounds);
The QMatrix4x4 class represents a 4x4 transformation matrix in 3D space.
Class representing 3D range or axis aligned bounding box.
The QVector3D class represents a vector or vertex in 3D space.
static constexpr float dotProduct(QVector3D v1, QVector3D v2) noexcept
Returns the dot product of v1 and v2.
Combined button and popup list for selecting options.
constexpr T qAbs(const T &t)
GLsizei GLsizei GLfloat distance
constexpr bool intersectSimple(const QSSGBounds3 &bounds) const
void calculateBBoxEdges()
static constexpr QVector3D corner(const QSSGBounds3 &bounds, BoxEdgeFlag edge)
constexpr float distance(const QVector3D &pt) const
int intersect(const QSSGBounds3 &bounds) const
std::underlying_type_t< BoxEdgeID > BoxEdgeFlag
QVector3D intersectWithLine(const QVector3D &p0, const QVector3D &p1) const
bool intersectsWith(const QVector3D &point, float radius=0.0f) const
QSSGClippingFrustum()=default
bool intersectsWith(const QSSGBounds3 &bounds) const