Pyrogenesis trunk
|
#include <Matrix3D.h>
Public Member Functions | |
CMatrix3D () | |
CMatrix3D (float a11, float a12, float a13, float a14, float a21, float a22, float a23, float a24, float a31, float a32, float a33, float a34, float a41, float a42, float a43, float a44) | |
CMatrix3D (float data[]) | |
float & | operator() (int col, int row) |
const float & | operator() (int col, int row) const |
float & | operator[] (int idx) |
const float & | operator[] (int idx) const |
CMatrix3D | operator* (const CMatrix3D &matrix) const |
CMatrix3D & | operator*= (const CMatrix3D &matrix) |
CMatrix3D | operator* (float f) const |
CMatrix3D | operator+ (const CMatrix3D &m) const |
CMatrix3D & | operator+= (const CMatrix3D &m) |
bool | operator== (const CMatrix3D &m) const |
bool | operator!= (const CMatrix3D &m) const |
void | SetIdentity () |
void | SetZero () |
void | SetOrtho (float left, float right, float bottom, float top, float near, float far) |
void | SetPerspective (float fov, float aspect, float near, float far) |
void | SetPerspectiveTile (float fov, float aspect, float near, float far, int tiles, int tile_x, int tile_y) |
void | Concatenate (const CMatrix3D &m) |
void | Blend (const CMatrix3D &m, float f) |
void | AddBlend (const CMatrix3D &m, float f) |
void | SetXRotation (float angle) |
void | SetYRotation (float angle) |
void | SetZRotation (float angle) |
void | SetRotation (const CQuaternion &quat) |
void | RotateX (float angle) |
void | RotateY (float angle) |
void | RotateZ (float angle) |
void | Rotate (const CQuaternion &quat) |
void | SetTranslation (float x, float y, float z) |
void | SetTranslation (const CVector3D &vector) |
void | Translate (float x, float y, float z) |
void | Translate (const CVector3D &vector) |
void | PostTranslate (float x, float y, float z) |
void | SetScaling (float x_scale, float y_scale, float z_scale) |
void | Scale (float x_scale, float y_scale, float z_scale) |
void | GetInverse (CMatrix3D &dst) const |
CMatrix3D | GetInverse () const |
CMatrix3D | GetTranspose () const |
CVector3D | GetTranslation () const |
CVector3D | GetLeft () const |
CVector3D | GetUp () const |
CVector3D | GetIn () const |
CQuaternion | GetRotation () const |
float | GetYRotation () const |
CVector3D | Transform (const CVector3D &vector) const |
void | Transform (const CVector3D &vector, CVector3D &result) const |
CVector4D | Transform (const CVector4D &vector) const |
void | Transform (const CVector4D &vector, CVector4D &result) const |
CVector3D | Rotate (const CVector3D &vector) const |
void | Rotate (const CVector3D &vector, CVector3D &result) const |
void | RotateTransposed (const CVector3D &vector, CVector3D &result) const |
CVector3D | RotateTransposed (const CVector3D &vector) const |
PS::span< const float > | AsFloatArray () const |
Public Attributes | |
union { | |
struct { | |
float _11 | |
float _21 | |
float _31 | |
float _41 | |
float _12 | |
float _22 | |
float _32 | |
float _42 | |
float _13 | |
float _23 | |
float _33 | |
float _43 | |
float _14 | |
float _24 | |
float _34 | |
float _44 | |
} | |
float _data [16] | |
float _data2d [4][4] | |
}; | |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
CVector3D CMatrix3D::GetIn | ( | ) | const |
CMatrix3D CMatrix3D::GetInverse | ( | ) | const |
void CMatrix3D::GetInverse | ( | CMatrix3D & | dst | ) | const |
CVector3D CMatrix3D::GetLeft | ( | ) | const |
CQuaternion CMatrix3D::GetRotation | ( | ) | const |
CVector3D CMatrix3D::GetTranslation | ( | ) | const |
CMatrix3D CMatrix3D::GetTranspose | ( | ) | const |
CVector3D CMatrix3D::GetUp | ( | ) | const |
float CMatrix3D::GetYRotation | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void CMatrix3D::PostTranslate | ( | float | x, |
float | y, | ||
float | z | ||
) |
void CMatrix3D::Rotate | ( | const CQuaternion & | quat | ) |
void CMatrix3D::RotateX | ( | float | angle | ) |
void CMatrix3D::RotateY | ( | float | angle | ) |
void CMatrix3D::RotateZ | ( | float | angle | ) |
void CMatrix3D::Scale | ( | float | x_scale, |
float | y_scale, | ||
float | z_scale | ||
) |
void CMatrix3D::SetIdentity | ( | ) |
void CMatrix3D::SetOrtho | ( | float | left, |
float | right, | ||
float | bottom, | ||
float | top, | ||
float | near, | ||
float | far | ||
) |
void CMatrix3D::SetPerspective | ( | float | fov, |
float | aspect, | ||
float | near, | ||
float | far | ||
) |
void CMatrix3D::SetPerspectiveTile | ( | float | fov, |
float | aspect, | ||
float | near, | ||
float | far, | ||
int | tiles, | ||
int | tile_x, | ||
int | tile_y | ||
) |
void CMatrix3D::SetRotation | ( | const CQuaternion & | quat | ) |
void CMatrix3D::SetScaling | ( | float | x_scale, |
float | y_scale, | ||
float | z_scale | ||
) |
void CMatrix3D::SetTranslation | ( | const CVector3D & | vector | ) |
void CMatrix3D::SetTranslation | ( | float | x, |
float | y, | ||
float | z | ||
) |
void CMatrix3D::SetXRotation | ( | float | angle | ) |
void CMatrix3D::SetYRotation | ( | float | angle | ) |
void CMatrix3D::SetZero | ( | ) |
void CMatrix3D::SetZRotation | ( | float | angle | ) |
void CMatrix3D::Translate | ( | const CVector3D & | vector | ) |
void CMatrix3D::Translate | ( | float | x, |
float | y, | ||
float | z | ||
) |
union { ... } CMatrix3D::@23 |
float CMatrix3D::_11 |
float CMatrix3D::_12 |
float CMatrix3D::_13 |
float CMatrix3D::_14 |
float CMatrix3D::_21 |
float CMatrix3D::_22 |
float CMatrix3D::_23 |
float CMatrix3D::_24 |
float CMatrix3D::_31 |
float CMatrix3D::_32 |
float CMatrix3D::_33 |
float CMatrix3D::_34 |
float CMatrix3D::_41 |
float CMatrix3D::_42 |
float CMatrix3D::_43 |
float CMatrix3D::_44 |
float CMatrix3D::_data[16] |
float CMatrix3D::_data2d[4][4] |