Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
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)
 
void flip (QMatrix4x4 &matrix)
 

Function Documentation

◆ flip()

void mat44::flip ( QMatrix4x4 matrix)
inline

Definition at line 74 of file qssgutils_p.h.

◆ getPosition()

QVector3D mat44::getPosition ( const QMatrix4x4 m)

Definition at line 97 of file qssgutils.cpp.

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

+ Here is the caller graph for this function:

◆ getScale()

QVector3D mat44::getScale ( const QMatrix4x4 m)

Definition at line 102 of file qssgutils.cpp.

References QVector3D::length().

Referenced by 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 mat44::getUpper3x3 ( const QMatrix4x4 m)

Definition at line 51 of file qssgutils.cpp.

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

+ Here is the caller graph for this function:

◆ normalize()

void mat44::normalize ( QMatrix4x4 m)

Definition at line 57 of file qssgutils.cpp.

References c2, and QVector4D::normalize().

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

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

◆ rotate() [1/2]

QVector3D 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 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 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(), QSSGRenderer::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 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: