CBlueUI  
C++ 跨平台跨框架的数据可视化工具
载入中...
搜索中...
未找到
MatFloat4x4类 参考

Public 成员函数

 MatFloat4x4 ()
 
 MatFloat4x4 (const VecFloat4 &r1, const VecFloat4 &r2, const VecFloat4 &r3, const VecFloat4 &r4)
 
 ~MatFloat4x4 ()
 
const MatFloat4x4operator= (const MatFloat4x4 &mtx)
 
MatFloat4x4 operator+ (const MatFloat4x4 &mtx) const
 
MatFloat4x4 operator- (const MatFloat4x4 &mtx) const
 
const MatFloat4x4operator+= (const MatFloat4x4 &mtx)
 
const MatFloat4x4operator-= (const MatFloat4x4 &mtx)
 
MatFloat4x4 operator* (const MatFloat4x4 &mtx) const
 
const MatFloat4x4operator*= (const MatFloat4x4 &mtx)
 
bool operator== (const MatFloat4x4 &mtx) const
 
bool operator!= (const MatFloat4x4 &mtx) const
 
VecFloat4operator[] (int pos)
 
const VecFloat4operator[] (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 &center, 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() [1/2]

MatFloat4x4::MatFloat4x4 ( )

◆ MatFloat4x4() [2/2]

MatFloat4x4::MatFloat4x4 ( const VecFloat4 r1,
const VecFloat4 r2,
const VecFloat4 r3,
const VecFloat4 r4 
)

◆ ~MatFloat4x4()

MatFloat4x4::~MatFloat4x4 ( )

成员函数说明

◆ BaseSpace()

static MatFloat4x4 MatFloat4x4::BaseSpace ( const VecFloat4 o,
const VecFloat4 i,
const VecFloat4 j,
const VecFloat4 k 
)
static

◆ Determinant()

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

◆ DeterminantSub()

double MatFloat4x4::DeterminantSub ( int  i,
int  j 
) const

A*(i,j)代数余子式

返回
double

◆ Inverse()

MatFloat4x4 MatFloat4x4::Inverse ( ) const

◆ Lookat()

static MatFloat4x4 MatFloat4x4::Lookat ( const VecFloat3 eye,
const VecFloat3 center,
const VecFloat3 up 
)
static

◆ operator!=()

bool MatFloat4x4::operator!= ( const MatFloat4x4 mtx) const

◆ operator*()

MatFloat4x4 MatFloat4x4::operator* ( const MatFloat4x4 mtx) const

◆ operator*=()

const MatFloat4x4 & MatFloat4x4::operator*= ( const MatFloat4x4 mtx)

◆ operator+()

MatFloat4x4 MatFloat4x4::operator+ ( const MatFloat4x4 mtx) const

◆ operator+=()

const MatFloat4x4 & MatFloat4x4::operator+= ( const MatFloat4x4 mtx)

◆ operator-()

MatFloat4x4 MatFloat4x4::operator- ( const MatFloat4x4 mtx) const

◆ operator-=()

const MatFloat4x4 & MatFloat4x4::operator-= ( const MatFloat4x4 mtx)

◆ operator=()

const MatFloat4x4 & MatFloat4x4::operator= ( const MatFloat4x4 mtx)

◆ operator==()

bool MatFloat4x4::operator== ( const MatFloat4x4 mtx) const

◆ operator[]() [1/2]

VecFloat4 & MatFloat4x4::operator[] ( int  pos)

◆ operator[]() [2/2]

const VecFloat4 & MatFloat4x4::operator[] ( int  pos) const

◆ Ortho()

static MatFloat4x4 MatFloat4x4::Ortho ( float  left,
float  right,
float  bottom,
float  top,
float  zNear,
float  zFar 
)
static

◆ PerspectiveFov()

static MatFloat4x4 MatFloat4x4::PerspectiveFov ( float  FovAngleY,
float  AspectRatio,
float  NearZ,
float  FarZ 
)
static

◆ RotateAxis()

static MatFloat4x4 MatFloat4x4::RotateAxis ( float  angle,
float  Rx,
float  Ry,
float  Rz 
)
static

◆ RotateX()

static MatFloat4x4 MatFloat4x4::RotateX ( float  angle)
static

◆ RotateY()

static MatFloat4x4 MatFloat4x4::RotateY ( float  angle)
static

◆ RotateZ()

static MatFloat4x4 MatFloat4x4::RotateZ ( float  angle)
static

◆ ScaleMatrix()

static MatFloat4x4 MatFloat4x4::ScaleMatrix ( float  s0,
float  s1,
float  s2 
)
static

◆ Transform()

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 ]

◆ TranslationMatrix()

static MatFloat4x4 MatFloat4x4::TranslationMatrix ( float  d0,
float  d1,
float  d2 
)
static

◆ Transpose()

MatFloat4x4 MatFloat4x4::Transpose ( ) const

类成员变量说明

◆ r

VecFloat4 MatFloat4x4::r[4]
鄂公网安备42018502007752 鄂ICP备2024082886
Copyright © 2025 · CBlueStudio 版权所有