4#ifndef QPHYSICSUTILS_P_H
5#define QPHYSICSUTILS_P_H
20#include <foundation/PxMat33.h>
21#include <foundation/PxQuat.h>
22#include <foundation/PxVec3.h>
32 return physx::PxVec3(qvec.
x(), qvec.
y(), qvec.
z());
37 return physx::PxQuat(qquat.
x(), qquat.
y(), qquat.
z(), qquat.
scalar());
42 return physx::PxMat33(
const_cast<float *
>(
m.constData()));
The QQuaternion class represents a quaternion consisting of a vector and scalar.
float z() const
Returns the z coordinate of this quaternion's vector.
float scalar() const
Returns the scalar component of this quaternion.
float x() const
Returns the x coordinate of this quaternion's vector.
float y() const
Returns the y coordinate of this quaternion's vector.
The QVector3D class represents a vector or vertex in 3D space.
constexpr float y() const noexcept
Returns the y coordinate of this point.
constexpr float x() const noexcept
Returns the x coordinate of this point.
constexpr float z() const noexcept
Returns the z coordinate of this point.
Q_ALWAYS_INLINE physx::PxVec3 toPhysXType(const QVector3D &qvec)
Q_ALWAYS_INLINE QVector3D toQtType(const physx::PxVec3 &vec)