TalanSoft Toolkits  201707
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
sMatrix< T > Struct Template Reference

Detailed Description

template<class T>
struct ni::sMatrix< T >

4x4 Matrix template

Public Member Functions

void Set (T e11, T e12, T e13, T e14, T e21, T e22, T e23, T e24, T e31, T e32, T e33, T e34, T e41, T e42, T e43, T e44)
 
void Set (const T *apEl)
 
tSize size () const
 
T * ptr ()
 
const T * ptr () const
 
T & operator() (int row, int col)
 
operator() (int row, int col) const
 
T & operator[] (int idx)
 
operator[] (int idx) const
 
sMatrix< T > & operator*= (const sMatrix< T > &matB)
 
sMatrix< T > & operator+= (const sMatrix< T > &matB)
 
sMatrix< T > & operator-= (const sMatrix< T > &matB)
 
sMatrix< T > & operator*= (T s)
 
sMatrix< T > & operator/= (T s)
 
sMatrix< T > operator+ () const
 
sMatrix< T > operator- () const
 
sMatrix< T > operator* (const sMatrix< T > &matB) const
 
sMatrix< T > operator+ (const sMatrix< T > &matB) const
 
sMatrix< T > operator- (const sMatrix< T > &matB) const
 
sMatrix< T > operator* (T s) const
 
sMatrix< T > operator/ (T s) const
 
bool operator< (const sMatrix< T > &aR) const
 
bool operator<= (const sMatrix< T > &aR) const
 
bool operator> (const sMatrix< T > &aR) const
 
bool operator>= (const sMatrix< T > &aR) const
 
bool operator== (const sMatrix< T > &aR) const
 
bool operator!= (const sMatrix< T > &aR) const
 
sMatrix< T > Mul (const sMatrix< T > &M2) const
 

Static Public Member Functions

static const sMatrixOne ()
 
static const sMatrixZero ()
 
static const sMatrixIdentity ()
 
static const sMatrixHermite ()
 
static const sMatrixEpsilon ()
 
static sMatrix< T > & _Mul (sMatrix< T > &Out, const sMatrix< T > &A, const sMatrix< T > &B)
 

Public Attributes

_11
 data More...
 
_12
 
_13
 
_14
 
_21
 
_22
 
_23
 
_24
 
_31
 
_32
 
_33
 
_34
 
_41
 
_42
 
_43
 
_44
 

Member Function Documentation

void Set ( e11,
e12,
e13,
e14,
e21,
e22,
e23,
e24,
e31,
e32,
e33,
e34,
e41,
e42,
e43,
e44 
)
void Set ( const T *  apEl)
tSize size ( ) const
T* ptr ( )
const T* ptr ( ) const
T& operator() ( int  row,
int  col 
)
T operator() ( int  row,
int  col 
) const
T& operator[] ( int  idx)
T operator[] ( int  idx) const
sMatrix<T>& operator*= ( const sMatrix< T > &  matB)
sMatrix<T>& operator+= ( const sMatrix< T > &  matB)
sMatrix<T>& operator-= ( const sMatrix< T > &  matB)
sMatrix<T>& operator*= ( s)
sMatrix<T>& operator/= ( s)
sMatrix<T> operator+ ( ) const
sMatrix<T> operator- ( ) const
sMatrix<T> operator* ( const sMatrix< T > &  matB) const
sMatrix<T> operator+ ( const sMatrix< T > &  matB) const
sMatrix<T> operator- ( const sMatrix< T > &  matB) const
sMatrix<T> operator* ( s) const
sMatrix<T> operator/ ( s) const
bool operator< ( const sMatrix< T > &  aR) const
bool operator<= ( const sMatrix< T > &  aR) const
bool operator> ( const sMatrix< T > &  aR) const
bool operator>= ( const sMatrix< T > &  aR) const
bool operator== ( const sMatrix< T > &  aR) const
bool operator!= ( const sMatrix< T > &  aR) const
static const sMatrix& One ( )
static
static const sMatrix& Zero ( )
static
static const sMatrix& Identity ( )
static
static const sMatrix& Hermite ( )
static
static const sMatrix& Epsilon ( )
static
static sMatrix<T>& _Mul ( sMatrix< T > &  Out,
const sMatrix< T > &  A,
const sMatrix< T > &  B 
)
static
sMatrix<T> Mul ( const sMatrix< T > &  M2) const

Member Data Documentation

T _11

data

T _12
T _13
T _14
T _21
T _22
T _23
T _24
T _31
T _32
T _33
T _34
T _41
T _42
T _43
T _44