All Classes Files Functions Variables Typedefs Pages
Static Public Member Functions | List of all members
MatrixHelper< T > Class Template Reference

Description

template<typename T>
class lumina::internal::MatrixHelper< T >

Helper struct for various algorithms.

Just for internal use!

Static Public Member Functions

template<std::size_t N>
static T det (const T(&m)[N][N])
 calculates the determinant of the matrix
 
static T det (const T(&m)[2][2])
 
static T det (const T(&m)[3][3])
 
static T det (const T(&m)[4][4])
 
template<std::size_t N>
static void invert (const T(&m)[N][N], T(&out)[N][N])
 calculates the inverted matrix and writes it to out More...
 
static void invert (const T(&m)[2][2], T(&out)[2][2])
 
static void invert (const T(&m)[3][3], T(&out)[3][3])
 
static void invert (const T(&m)[4][4], T(&out)[4][4])
 
template<std::size_t R, std::size_t C>
static void transpose (const T(&m)[R][C], const T(&out)[C][R])
 Transposes the matrix m and writes result into out.
 

Member Function Documentation

static void invert ( const T(&)  m[N][N],
T(&)  out[N][N] 
)
static

calculates the inverted matrix and writes it to out

Parameters
mmatrix to invert
outout-parameter for inverted matrix