Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qssgshadowmaphelpers.cpp File Reference

(b027d2e8e3e8c21121d731c69ee6f399405cb0b6)

#include "qssgshadowmaphelpers_p.h"
#include "qssgdebugdrawsystem_p.h"
#include "qssgrenderray_p.h"
#include <QVector3D>
#include <QMatrix4x4>
#include <QVector4D>
#include <cmath>
Include dependency graph for qssgshadowmaphelpers.cpp:

Go to the source code of this file.

Classes

struct  Vertex
 \qmltype MapCircle \nativetype QDeclarativeCircleMapItem \inqmlmodule QtLocation More...

Functions

static QT_BEGIN_NAMESPACE QMatrix4x4 buildOrthonormalBasis (const QVector3D &normal)
static bool lineLineIntersection (QVector2D a, QVector2D b, QVector2D c, QVector2D d)
static QList< QVector3DsliceBoxByPlanes (const QList< std::array< QVector3D, 2 > > &planes, const QSSGBoxPoints &castingBox, QSSGDebugDrawSystem *debugDrawSystem, const QColor &color)

Variables

static constexpr std::array< std::array< int, 2 >, 12 > BOX_LINE_INDICES

Function Documentation

◆ buildOrthonormalBasis()

QT_BEGIN_NAMESPACE QMatrix4x4 buildOrthonormalBasis ( const QVector3D & normal)
static

Definition at line 18 of file qssgshadowmaphelpers.cpp.

◆ lineLineIntersection()

bool lineLineIntersection ( QVector2D a,
QVector2D b,
QVector2D c,
QVector2D d )
static

Definition at line 121 of file qssgshadowmaphelpers.cpp.

◆ sliceBoxByPlanes()

QList< QVector3D > sliceBoxByPlanes ( const QList< std::array< QVector3D, 2 > > & planes,
const QSSGBoxPoints & castingBox,
QSSGDebugDrawSystem * debugDrawSystem,
const QColor & color )
static

Definition at line 188 of file qssgshadowmaphelpers.cpp.

References Vertex::active.

Variable Documentation

◆ BOX_LINE_INDICES

constexpr std::array< std::array< int, 2 >, 12 > BOX_LINE_INDICES
staticconstexpr
Initial value:
= {
std::array<int, 2> { 0, 1 }, std::array<int, 2> { 1, 2 }, std::array<int, 2> { 2, 3 }, std::array<int, 2> { 3, 0 },
std::array<int, 2> { 4, 5 }, std::array<int, 2> { 5, 6 }, std::array<int, 2> { 6, 7 }, std::array<int, 2> { 7, 4 },
std::array<int, 2> { 0, 4 }, std::array<int, 2> { 1, 5 }, std::array<int, 2> { 2, 6 }, std::array<int, 2> { 3, 7 },
}

Definition at line 48 of file qssgshadowmaphelpers.cpp.