#include <StdMeshMath.h>
|
static StdProjectionMatrix | Identity () |
|
static StdProjectionMatrix | Translate (float dx, float dy, float dz) |
|
static StdProjectionMatrix | Scale (float sx, float sy, float sz) |
|
static StdProjectionMatrix | Rotate (float angle, float rx, float ry, float rz) |
|
static StdProjectionMatrix | Orthographic (float left, float right, float bottom, float top) |
|
static StdMeshMatrix | Upper3x4 (const StdProjectionMatrix &matrix) |
|
Definition at line 119 of file StdMeshMath.h.
◆ data()
const float* StdProjectionMatrix::data |
( |
| ) |
const |
|
inline |
◆ Identity()
Definition at line 364 of file StdMeshMath.cpp.
367 m.a[0][0] = 1.0f; m.a[0][1] = 0.0f; m.a[0][2] = 0.0f; m.a[0][3] = 0.0f;
368 m.a[1][0] = 0.0f; m.a[1][1] = 1.0f; m.a[1][2] = 0.0f; m.a[1][3] = 0.0f;
369 m.a[2][0] = 0.0f; m.a[2][1] = 0.0f; m.a[2][2] = 1.0f; m.a[2][3] = 0.0f;
370 m.a[3][0] = 0.0f; m.a[3][1] = 0.0f; m.a[3][2] = 0.0f; m.a[3][3] = 1.0f;
Referenced by C4ParticleList::Draw(), CStdGL::PerformMesh(), and CStdGL::SetupMultiBlt().
◆ operator()() [1/2]
float& StdProjectionMatrix::operator() |
( |
int |
i, |
|
|
int |
j |
|
) |
| |
|
inline |
◆ operator()() [2/2]
float StdProjectionMatrix::operator() |
( |
int |
i, |
|
|
int |
j |
|
) |
| const |
|
inline |
◆ Orthographic()
StdProjectionMatrix StdProjectionMatrix::Orthographic |
( |
float |
left, |
|
|
float |
right, |
|
|
float |
bottom, |
|
|
float |
top |
|
) |
| |
|
static |
◆ Rotate()
Definition at line 394 of file StdMeshMath.cpp.
400 float abs = sqrt(rx*rx+ry*ry+rz*rz);
401 rx/=abs; ry/=abs; rz/=abs;
402 float c = cos(angle),
s = sin(angle);
404 m.a[0][0] = rx*rx*(1-c)+c; m.a[0][1] = rx*ry*(1-c)-rz*
s; m.a[0][2] = rx*rz*(1-c)+ry*
s; m.a[0][3] = 0.0f;
405 m.a[1][0] = ry*rx*(1-c)+rz*
s; m.a[1][1] = ry*ry*(1-c)+c; m.a[1][2] = ry*rz*(1-c)-rx*
s; m.a[1][3] = 0.0f;
406 m.a[2][0] = rz*rx*(1-c)-ry*
s; m.a[2][1] = ry*rz*(1-c)+rx*
s; m.a[2][2] = rz*rz*(1-c)+c; m.a[2][3] = 0.0f;
407 m.a[3][0] = 0.0f; m.a[3][1] = 0.0f; m.a[3][2] = 0.0f; m.a[3][3] = 1.0f;
References s.
◆ Scale()
Definition at line 384 of file StdMeshMath.cpp.
387 m.a[0][0] = sx; m.a[0][1] = 0.0f; m.a[0][2] = 0.0f; m.a[0][3] = 0.0f;
388 m.a[1][0] = 0.0f; m.a[1][1] = sy; m.a[1][2] = 0.0f; m.a[1][3] = 0.0f;
389 m.a[2][0] = 0.0f; m.a[2][1] = 0.0f; m.a[2][2] = sz; m.a[2][3] = 0.0f;
390 m.a[3][0] = 0.0f; m.a[3][1] = 0.0f; m.a[3][2] = 0.0f; m.a[3][3] = 1.0f;
◆ Translate()
Definition at line 374 of file StdMeshMath.cpp.
377 m.a[0][0] = 1.0f; m.a[0][1] = 0.0f; m.a[0][2] = 0.0f; m.a[0][3] = dx;
378 m.a[1][0] = 0.0f; m.a[1][1] = 1.0f; m.a[1][2] = 0.0f; m.a[1][3] = dy;
379 m.a[2][0] = 0.0f; m.a[2][1] = 0.0f; m.a[2][2] = 1.0f; m.a[2][3] = dz;
380 m.a[3][0] = 0.0f; m.a[3][1] = 0.0f; m.a[3][2] = 0.0f; m.a[3][3] = 1.0f;
Referenced by CStdGL::PerformMultiPix().
◆ Upper3x4()
Definition at line 433 of file StdMeshMath.cpp.
436 m(0, 0) = matrix.a[0][0]; m(0, 1) = matrix.a[0][1]; m(0, 2) = matrix.a[0][2]; m(0, 3) = matrix.a[0][3];
437 m(1, 0) = matrix.a[1][0]; m(1, 1) = matrix.a[1][1]; m(1, 2) = matrix.a[1][2]; m(1, 3) = matrix.a[1][3];
438 m(2, 0) = matrix.a[2][0]; m(2, 1) = matrix.a[2][1]; m(2, 2) = matrix.a[2][2]; m(2, 3) = matrix.a[2][3];
Referenced by CStdGL::SetupMultiBlt().
◆ NColumns
const int StdProjectionMatrix::NColumns = 4 |
|
static |
◆ NRows
const int StdProjectionMatrix::NRows = 4 |
|
static |
The documentation for this class was generated from the following files: