11#include "foundation/PxVec3.h"
13#include "foundation/PxVec4.h"
14#include "foundation/PxMat44.h"
23 return physx::PxVec3(vec.
x, vec.
y, vec.
z);
32 return physx::PxVec3(vec.
x, vec.
y, vec.
z);
68 return physx::PxVec4(vec.
x, vec.
y, vec.
z, vec.
w);
77 return physx::PxQuat(vec.
x, vec.
y, vec.
z, vec.
w);
101inline physx::PxTransform
104 return physx::PxTransform(
Neb2PxMat(mat));
110inline physx::PxTransform
119inline physx::PxTransform
#define n_assert(exp)
Definition debug.h:50
mat4 rotationquat(const quat &q)
TODO: rewrite using SSE.
Definition mat4.cc:178
static const __m128 _plus1
Definition vec3.h:34
A 4x4 single point precision float matrix.
Definition mat4.h:49
vec4 row3
Definition mat4.h:138
vec4 position
Definition mat4.h:118
vec4 row1
Definition mat4.h:136
vec4 row0
Definition mat4.h:135
vec4 row2
Definition mat4.h:137
Represents a 3D point in space.
Definition point.h:22
float z
Definition point.h:78
float x
Definition point.h:78
float y
Definition point.h:78
A quaternion is usually used to represent an orientation in 3D space.
Definition quat.h:30
float y
Definition quat.h:78
float z
Definition quat.h:78
float w
Definition quat.h:78
float x
Definition quat.h:78
A 3D vector.
Definition vec3.h:40
A 4D vector.
Definition vec4.h:24
float y
Definition vec4.h:93
float z
Definition vec4.h:93
float w
Definition vec4.h:93
float x
Definition vec4.h:93
A vector is a 3D direction in space.
Definition vector.h:22
float z
Definition vector.h:85
float x
Definition vector.h:85
float y
Definition vector.h:85
Math::quat Px2NebQuat(const physx::PxQuat &vec)
Definition utils.h:84
Math::vector Px2NebVec(const physx::PxVec3 &vec)
Definition utils.h:39
Math::point Px2NebPoint(const physx::PxVec3 &vec)
Definition utils.h:57
physx::PxMat44 Neb2PxMat(const Math::mat4 &mat)
Definition utils.h:93
Math::vec4 Px2Nebfloat4(const physx::PxVec4 &vec)
Definition utils.h:48
Math::mat4 Px2NebMat(const physx::PxTransform &mat)
Definition utils.h:136
Math::transform Px2NebTrans(const physx::PxTransform &trans)
Definition utils.h:127
physx::PxTransform Neb2PxTrans(const Math::mat4 &mat)
Definition utils.h:102
physx::PxVec4 Neb2PxVec4(const Math::vec4 &vec)
Definition utils.h:66
physx::PxQuat Neb2PxQuat(const Math::quat &vec)
Definition utils.h:75
physx::PxVec3 Neb2PxVec(const Math::vector &vec)
PhysX utils for conversion of datatypes.
Definition utils.h:21
physx::PxVec3 Neb2PxPnt(const Math::point &vec)
Definition utils.h:30