CBlueUI
C++ 跨平台跨框架的数据可视化工具
|
Public 成员函数 | |
MatFloat4x4 () | |
MatFloat4x4 (const VecFloat4 &r1, const VecFloat4 &r2, const VecFloat4 &r3, const VecFloat4 &r4) | |
~MatFloat4x4 () | |
const MatFloat4x4 & | operator= (const MatFloat4x4 &mtx) |
MatFloat4x4 | operator+ (const MatFloat4x4 &mtx) const |
MatFloat4x4 | operator- (const MatFloat4x4 &mtx) const |
const MatFloat4x4 & | operator+= (const MatFloat4x4 &mtx) |
const MatFloat4x4 & | operator-= (const MatFloat4x4 &mtx) |
MatFloat4x4 | operator* (const MatFloat4x4 &mtx) const |
const MatFloat4x4 & | operator*= (const MatFloat4x4 &mtx) |
bool | operator== (const MatFloat4x4 &mtx) const |
bool | operator!= (const MatFloat4x4 &mtx) const |
VecFloat4 & | operator[] (int pos) |
const VecFloat4 & | operator[] (int pos) const |
double | Determinant () const |
矩阵的行列式值。(只有方阵,才有行列式值) | a b c d| | e f g h| = a*A(0,0)-b*A(0,1)+c*A(0,2)-d*A(0,3) | i j k l| | m n o p| 符号:A(i,j) 表示代数余子式。其中i,j 取值区间为(0,1,2,3)非负整数。高阶矩阵可以化简为低阶矩阵求解。 | |
double | DeterminantSub (int i, int j) const |
A*(i,j)代数余子式 | |
MatFloat4x4 | Transpose () const |
MatFloat4x4 | Inverse () const |
void | Transform (VecFloat4 &vec) |
转换vec向量,并将结果输出到vec中 [x1, x2, x3, Tx] [ x ] [y1, y2, y3, Ty] * [ y ] [z1, z2, z3, Tz] [ z ] [ 0, 0, 0, 1] [ 1 ] | |
静态 Public 成员函数 | |
static MatFloat4x4 | ScaleMatrix (float s0, float s1, float s2) |
static MatFloat4x4 | TranslationMatrix (float d0, float d1, float d2) |
static MatFloat4x4 | RotateX (float angle) |
static MatFloat4x4 | RotateY (float angle) |
static MatFloat4x4 | RotateZ (float angle) |
static MatFloat4x4 | RotateAxis (float angle, float Rx, float Ry, float Rz) |
static MatFloat4x4 | BaseSpace (const VecFloat4 &o, const VecFloat4 &i, const VecFloat4 &j, const VecFloat4 &k) |
static MatFloat4x4 | Lookat (const VecFloat3 &eye, const VecFloat3 ¢er, const VecFloat3 &up) |
static MatFloat4x4 | Ortho (float left, float right, float bottom, float top, float zNear, float zFar) |
static MatFloat4x4 | PerspectiveFov (float FovAngleY, float AspectRatio, float NearZ, float FarZ) |
Public 属性 | |
VecFloat4 | r [4] |
MatFloat4x4::MatFloat4x4 | ( | ) |
MatFloat4x4::MatFloat4x4 | ( | const VecFloat4 & | r1, |
const VecFloat4 & | r2, | ||
const VecFloat4 & | r3, | ||
const VecFloat4 & | r4 | ||
) |
MatFloat4x4::~MatFloat4x4 | ( | ) |
|
static |
double MatFloat4x4::Determinant | ( | ) | const |
矩阵的行列式值。(只有方阵,才有行列式值) | a b c d| | e f g h| = a*A(0,0)-b*A(0,1)+c*A(0,2)-d*A(0,3) | i j k l| | m n o p| 符号:A(i,j) 表示代数余子式。其中i,j 取值区间为(0,1,2,3)非负整数。高阶矩阵可以化简为低阶矩阵求解。
double MatFloat4x4::DeterminantSub | ( | int | i, |
int | j | ||
) | const |
A*(i,j)代数余子式
MatFloat4x4 MatFloat4x4::Inverse | ( | ) | const |
|
static |
bool MatFloat4x4::operator!= | ( | const MatFloat4x4 & | mtx | ) | const |
MatFloat4x4 MatFloat4x4::operator* | ( | const MatFloat4x4 & | mtx | ) | const |
const MatFloat4x4 & MatFloat4x4::operator*= | ( | const MatFloat4x4 & | mtx | ) |
MatFloat4x4 MatFloat4x4::operator+ | ( | const MatFloat4x4 & | mtx | ) | const |
const MatFloat4x4 & MatFloat4x4::operator+= | ( | const MatFloat4x4 & | mtx | ) |
MatFloat4x4 MatFloat4x4::operator- | ( | const MatFloat4x4 & | mtx | ) | const |
const MatFloat4x4 & MatFloat4x4::operator-= | ( | const MatFloat4x4 & | mtx | ) |
const MatFloat4x4 & MatFloat4x4::operator= | ( | const MatFloat4x4 & | mtx | ) |
bool MatFloat4x4::operator== | ( | const MatFloat4x4 & | mtx | ) | const |
VecFloat4 & MatFloat4x4::operator[] | ( | int | pos | ) |
const VecFloat4 & MatFloat4x4::operator[] | ( | int | pos | ) | const |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
void MatFloat4x4::Transform | ( | VecFloat4 & | vec | ) |
转换vec向量,并将结果输出到vec中 [x1, x2, x3, Tx] [ x ] [y1, y2, y3, Ty] * [ y ] [z1, z2, z3, Tz] [ z ] [ 0, 0, 0, 1] [ 1 ]
|
static |
MatFloat4x4 MatFloat4x4::Transpose | ( | ) | const |
VecFloat4 MatFloat4x4::r[4] |