Definition at line 23 of file GlobalMasterTMD.C.
◆ Matrix4TMD() [1/2]
Matrix4TMD::Matrix4TMD |
( |
void |
| ) |
|
|
inline |
◆ Matrix4TMD() [2/2]
Matrix4TMD::Matrix4TMD |
( |
const BigReal * |
m | ) |
|
|
inline |
◆ identity()
void Matrix4TMD::identity |
( |
| ) |
|
|
inline |
◆ multmatrix()
void Matrix4TMD::multmatrix |
( |
const Matrix4TMD & |
m | ) |
|
|
inline |
premultiply the matrix by the given matrix, this->other * this
Definition at line 58 of file GlobalMasterTMD.C.
60 for (
int j=0; j<4; j++) {
65 for (
int i=0; i<4; i++) {
66 mat[4*i+j] = m.mat[4*i]*tmp[0] + m.mat[4*i+1]*tmp[1] +
67 m.mat[4*i+2]*tmp[2] + m.mat[4*i+3]*tmp[3];
◆ multpoint()
void Matrix4TMD::multpoint |
( |
BigReal |
point[3] | ) |
const |
|
inline |
Definition at line 28 of file GlobalMasterTMD.C.
30 BigReal itmp3 = 1.0f / (point[0]*mat[3] + point[1]*mat[7] +
31 point[2]*mat[11] + mat[15]);
32 tmp[0] = itmp3*point[0];
33 tmp[1] = itmp3*point[1];
34 tmp[2] = itmp3*point[2];
35 point[0]=tmp[0]*mat[0] + tmp[1]*mat[4] + tmp[2]*mat[ 8] + itmp3*mat[12];
36 point[1]=tmp[0]*mat[1] + tmp[1]*mat[5] + tmp[2]*mat[ 9] + itmp3*mat[13];
37 point[2]=tmp[0]*mat[2] + tmp[1]*mat[6] + tmp[2]*mat[10] + itmp3*mat[14];
◆ translate() [1/2]
Definition at line 71 of file GlobalMasterTMD.C.
void multmatrix(const Matrix4TMD &m)
premultiply the matrix by the given matrix, this->other * this
◆ translate() [2/2]
void Matrix4TMD::translate |
( |
BigReal |
d[3] | ) |
|
|
inline |
◆ transpose()
void Matrix4TMD::transpose |
( |
| ) |
|
|
inline |
Definition at line 47 of file GlobalMasterTMD.C.
52 tmp[4*i+j] = mat[i+4*j];
55 for(i=0;i<16;i++) mat[i] = tmp[i];
The documentation for this class was generated from the following file: