![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cMatrix.h>
Public Types | |
typedef TYPE | DVALUE_t |
Public Member Functions | |
cMatrixT () noexcept | |
cMatrixT (const THIS_t &v) noexcept | |
cMatrixT (const TYPE *pVals) noexcept | |
bool | IsNear (const THIS_t &v2, TYPE fDist=(TYPE) k_FLT_MIN2) const |
COMPARE_t | Compare (const THIS_t &v2) const |
bool | operator== (const THIS_t &v2) const |
bool | operator!= (const THIS_t &v2) const |
template<int _IDN> | |
void | InitMul (const cMatrixT< TYPE, _ROWS, _IDN > &m1, const cMatrixT< TYPE, _IDN, _COLS > &m2) |
TYPE * | RefRow (int nRow) |
const TYPE * | GetRow (int nRow) const |
const TYPE * | GetRow (AXIS_TYPE eAxis) const |
void | SetRow (int nRow, const TYPE *p) |
cVecT< TYPE, _COLS > & | RefRowV (int nRow) |
const cVecT< TYPE, _COLS > & | GetRowV (int nRow) const |
void | SetRowV (int nRow, const cVecT< TYPE, _COLS > &v) |
void | CopyColTo (int nCol, TYPE *pV) const |
void | CopyColToV (int nCol, cVecT< TYPE, _ROWS > &v) const |
cVecT< TYPE, _ROWS > | GetColV (int nCol) const |
void | SetCol (int nCol, const TYPE *pV) |
void | SetColV (int nCol, const cVecT< TYPE, _ROWS > &v) |
Public Attributes | |
union { | |
TYPE m_a [_ROWS *_COLS] | |
TYPE m [_ROWS][_COLS] | |
}; | |
Static Public Attributes | |
static const int | k_nRows = _ROWS |
static const int | k_nCols = _COLS |
a matrix of arbitrary (template) dimensions. _COLS (columns) need not be equal to _ROWS (rows).
typedef TYPE GrayLib::cMatrixT< TYPE, _ROWS, _COLS >::DVALUE_t |
|
inlinenoexcept |
ASSUME no/random/undefined init data.
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Only really useful for row-major matrices in a left-handed space. (DX not OpenGL) otherwise use GetRowV, GetColV
|
inline |
|
inline |
Set with result of multiply of 2 matrices.
|
inline |
Are these 2 matrices near each other ?
|
inline |
|
inline |
|
inline |
Only really useful for row-major matrices in a left-handed space. (DX not OpenGL) otherwise use GetRowV, GetColV
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
union { ... } |
|
static |
|
static |
TYPE GrayLib::cMatrixT< TYPE, _ROWS, _COLS >::m[_ROWS][_COLS] |
TYPE GrayLib::cMatrixT< TYPE, _ROWS, _COLS >::m_a[_ROWS *_COLS] |