AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
Matrix4x4.h File Reference
#include <agx/config/AGX_USE_SSE.h>
#include <agx/Math.h>
#include <agx/Quat.h>
#include <agx/Vec3.h>
#include <agx/Vec4.h>
#include <type_traits>
#include <agx/Prefetch.h>
#include <agx/OrthoMatrix3x3.h>
#include <agx/EulerAngles.h>
#include <agxData/Type.h>

Go to the source code of this file.

Classes

class  agx::Matrix4x4T< T >
 Matrix class for affine transformations. More...
 

Namespaces

namespace  agx
 The agx namespace contains the dynamics/math part of the AGX Dynamics API.
 

Macros

#define AGX_MATRIX4X4_INNER_PRODUCT(a, b, r, c)
 
#define AGX_MATRIX4X4_SET_ROW(row, v1, v2, v3, v4)
 

Typedefs

typedef Matrix4x4T< Real > agx::Matrix4x4
 
typedef Matrix4x4T< Real64 > agx::Matrix4x4d
 
typedef Matrix4x4T< Real32 > agx::Matrix4x4f
 

Functions

template<typename T >
bool agx::equivalent (const agx::Matrix4x4T< T > &a, const agx::Matrix4x4T< T > &b, T epsilon=1e-6)
 
template<>
Matrix4x4d agx::inverse< Matrix4x4d > (const Matrix4x4d &value)
 
template<>
Matrix4x4f agx::inverse< Matrix4x4f > (const Matrix4x4f &value)
 
template<typename T >
Vec3T< T > agx::operator* (const Vec3T< T > &v, const Matrix4x4T< T > &m)
 
template<typename T >
Vec4T< T > agx::operator* (const Vec4T< T > &v, const Matrix4x4T< T > &m)
 
template<typename T >
std::ostream & agx::operator<< (std::ostream &os, const Matrix4x4T< T > &m)
 

Macro Definition Documentation

◆ AGX_MATRIX4X4_INNER_PRODUCT

#define AGX_MATRIX4X4_INNER_PRODUCT (   a,
  b,
  r,
  c 
)
Value:
((a).m_data[r][0] * (b).m_data[0][c]) \
+((a).m_data[r][1] * (b).m_data[1][c]) \
+((a).m_data[r][2] * (b).m_data[2][c]) \
+((a).m_data[r][3] * (b).m_data[3][c])

Definition at line 44 of file Matrix4x4.h.

◆ AGX_MATRIX4X4_SET_ROW

#define AGX_MATRIX4X4_SET_ROW (   row,
  v1,
  v2,
  v3,
  v4 
)
Value:
m_data[(row)][0] = (v1); \
m_data[(row)][1] = (v2); \
m_data[(row)][2] = (v3); \
m_data[(row)][3] = (v4);

Definition at line 38 of file Matrix4x4.h.