PxMat34Padded

Defined in include/foundation/PxMat34.h

class PxMat34Padded : public PxMat34T<float>

A padded version of PxMat34, to safely load its data using SIMD.

Public Functions

inline PxMat34Padded(const PxMat34 &src)
inline PxMat34Padded()
inline ~PxMat34Padded()
inline void setIdentity()

Set to identity matrix.

inline bool operator==(const PxMat34T &other) const

Equality operator.

inline bool operator!=(const PxMat34T &other) const

Inequality operator.

inline PxMat34T operator-() const

Unary minus.

inline PxMat34T operator-(const PxMat34T &other) const

Subtract.

inline PxMat34T operator+(const PxMat34T &other) const

Add.

inline PxMat34T operator*(Type scalar) const

Scalar multiplication.

inline PxMat34T operator*(const PxMat34T &other) const

Matrix multiplication.

inline PxMat34T operator*(const PxMat33T<Type> &other) const

Matrix multiplication, extend the second matrix.

inline PxMat34T &operator+=(const PxMat34T &other)

Equals-add.

inline PxMat34T &operator-=(const PxMat34T &other)

Equals-sub.

inline PxMat34T &operator*=(Type scalar)

Equals scalar multiplication.

inline Type operator()(PxU32 row, PxU32 col) const

Element access, mathematical way!

inline Type &operator()(PxU32 row, PxU32 col)

Element access, mathematical way!

inline PxVec3T<Type> rotate(const PxVec3T<Type> &other) const

Transform vector by matrix, equal to v’ = M*v.

inline PxVec3T<Type> rotateTranspose(const PxVec3T<Type> &other) const

Transform vector by transpose of matrix, equal to v’ = M^t*v.

inline PxVec3T<Type> transform(const PxVec3T<Type> &other) const

Transform point by matrix.

inline PxVec3T<Type> transformTranspose(const PxVec3T<Type> &other) const

Transform point by transposed matrix.

inline PxMat34T transformTranspose(const PxMat34T &other) const

Transform point by transposed matrix.

inline PxMat34T getInverseRT() const

Invert matrix treating it as a rotation+translation matrix only.

inline PxVec3T<Type> &operator[](PxU32 num)
inline const PxVec3T<Type> &operator[](PxU32 num) const

Public Members

PxU32 padding
PxMat33T<Type> m
PxVec3T<Type> p