Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QSSGUtils::mat44 Namespace Reference

Functions

QMatrix3x3 Q_QUICK3DUTILS_EXPORT getUpper3x3 (const QMatrix4x4 &m)
 
void Q_QUICK3DUTILS_EXPORT normalize (QMatrix4x4 &m)
 
QVector3D Q_QUICK3DUTILS_EXPORT rotate (const QMatrix4x4 &m, const QVector3D &v)
 
QVector4D Q_QUICK3DUTILS_EXPORT rotate (const QMatrix4x4 &m, const QVector4D &v)
 
QVector3D Q_QUICK3DUTILS_EXPORT transform (const QMatrix4x4 &m, const QVector3D &v)
 
QVector4D Q_QUICK3DUTILS_EXPORT transform (const QMatrix4x4 &m, const QVector4D &v)
 
QVector3D Q_QUICK3DUTILS_EXPORT getPosition (const QMatrix4x4 &m)
 
QVector3D Q_QUICK3DUTILS_EXPORT getScale (const QMatrix4x4 &m)
 
bool Q_QUICK3DUTILS_EXPORT decompose (const QMatrix4x4 &m, QVector3D &position, QVector3D &scale, QQuaternion &rotation)
 
void flip (QMatrix4x4 &matrix)
 

Function Documentation

◆ decompose()

bool QSSGUtils::mat44::decompose ( const QMatrix4x4 & m,
QVector3D & position,
QVector3D & scale,
QQuaternion & rotation )

Definition at line 176 of file qssgutils.cpp.

References getPosition(), getScale(), getUpper3x3(), normalize(), position(), and qFuzzyCompare().

Referenced by QQuick3DNodePrivate::setLocalTransform().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ flip()

void QSSGUtils::mat44::flip ( QMatrix4x4 & matrix)
inline

Definition at line 78 of file qssgutils_p.h.

◆ getPosition()

QVector3D QSSGUtils::mat44::getPosition ( const QMatrix4x4 & m)

Definition at line 97 of file qssgutils.cpp.

Referenced by decompose(), QQuick3DNodePrivate::emitChangesToSceneTransform(), QSSGRenderNode::getGlobalPivot(), getPhysXWorldTransform(), QQuick3DNode::scenePosition(), and QQuick3DNode::updateSpatialNode().

+ Here is the caller graph for this function:

◆ getScale()

QVector3D QSSGUtils::mat44::getScale ( const QMatrix4x4 & m)

Definition at line 102 of file qssgutils.cpp.

References QVector3D::length().

Referenced by decompose(), QQuick3DNodePrivate::emitChangesToSceneTransform(), QSSGLayerRenderData::prepareModelsForRender(), QQuick3DNode::sceneScale(), and QQuick3DNode::updateSpatialNode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getUpper3x3()

QMatrix3x3 QSSGUtils::mat44::getUpper3x3 ( const QMatrix4x4 & m)

Definition at line 51 of file qssgutils.cpp.

Referenced by decompose(), QQuick3DNodePrivate::emitChangesToSceneTransform(), getPhysXWorldTransform(), QQuick3DNode::mapDirectionFromScene(), QQuick3DNode::rotate(), QQuick3DNode::sceneRotation(), and QQuick3DNode::updateSpatialNode().

+ Here is the caller graph for this function:

◆ normalize()

void QSSGUtils::mat44::normalize ( QMatrix4x4 & m)

Definition at line 57 of file qssgutils.cpp.

References c2, and QVector4D::normalize().

Referenced by decompose(), getPhysXWorldTransform(), and QQuick3DNodePrivate::sceneRotationMatrix().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rotate() [1/2]

QVector3D QSSGUtils::mat44::rotate ( const QMatrix4x4 & m,
const QVector3D & v )

Definition at line 75 of file qssgutils.cpp.

References rotate(), QVector4D::x(), QVector4D::y(), and QVector4D::z().

Referenced by QSSGRenderRay::createRayData(), QSSGRenderRay::relative(), and rotate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rotate() [2/2]

QVector4D QSSGUtils::mat44::rotate ( const QMatrix4x4 & m,
const QVector4D & v )

Definition at line 81 of file qssgutils.cpp.

References QVector3D::x().

+ Here is the call graph for this function:

◆ transform() [1/2]

QVector3D QSSGUtils::mat44::transform ( const QMatrix4x4 & m,
const QVector3D & v )

Definition at line 86 of file qssgutils.cpp.

References transform(), QVector4D::x(), QVector4D::y(), and QVector4D::z().

Referenced by QSSGRenderRay::createIntersectionResult(), QSSGRenderRay::createRayData(), QSSGRendererPrivate::intersectRayWithItem2D(), QSSGRenderRay::intersectWithBVHTriangles(), QQuick3DCamera::mapFromViewport(), QQuick3DNode::mapPositionFromScene(), QQuick3DNode::mapPositionToScene(), QQuick3DCamera::mapToViewport(), QSSGLayerRenderData::prepareModelsForRender(), QSSGLayerRenderData::prepareParticlesForRender(), QSSGRenderRay::relative(), transform(), and QSSGRenderCamera::unproject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ transform() [2/2]

QVector4D QSSGUtils::mat44::transform ( const QMatrix4x4 & m,
const QVector4D & v )

Definition at line 92 of file qssgutils.cpp.

References QVector3D::x().

+ Here is the call graph for this function: