#include <mat3.h>
Public Member Functions | |
CMat3 () | |
CMat3 (float xx, float xy, float xz, float yx, float yy, float yz, float zx, float zy, float zz) | |
float | determinant () const |
void | loadIdentity () |
void | makeRotationX (float fA) |
void | makeRotationY (float fA) |
void | makeRotationZ (float fA) |
void | makeScale (const Vector3D &vScale) |
CMat3 | operator* (const CMat3 &mat) const |
CMat3 | operator* (float f) const |
Vector3D | operator* (const Vector3D &v) const |
CMat3 & | operator*= (float f) |
CMat3 | operator+ (const CMat3 &mat1) |
float & | operator[] (const unsigned value) |
void | reverse () |
void | setValue (unsigned line, unsigned column, float value) |
std::string | toString () const |
void | transpose () |
float | valueAt (unsigned i) const |
~CMat3 () | |
Private Attributes | |
union { | |
struct { | |
float xx | |
float xy | |
float xz | |
float yx | |
float yy | |
float yz | |
float zx | |
float zy | |
float zz | |
} | |
float fMatrix [9] | |
float m [3][3] | |
}; |
CMat3::CMat3 | ( | ) |
CMat3::CMat3 | ( | float | xx, |
float | xy, | ||
float | xz, | ||
float | yx, | ||
float | yy, | ||
float | yz, | ||
float | zx, | ||
float | zy, | ||
float | zz | ||
) |
CMat3::~CMat3 | ( | ) |
float CMat3::determinant | ( | ) | const |
void CMat3::loadIdentity | ( | ) |
create identity matrix
void CMat3::makeRotationX | ( | float | fA | ) |
create rotation matrix
void CMat3::makeRotationY | ( | float | fA | ) |
void CMat3::makeRotationZ | ( | float | fA | ) |
void CMat3::makeScale | ( | const Vector3D & | vScale | ) |
create scale matrix
CMat3 CMat3::operator* | ( | float | f | ) | const |
CMat3& CMat3::operator*= | ( | float | f | ) |
float& CMat3::operator[] | ( | const unsigned | value | ) |
void CMat3::reverse | ( | ) |
reverse matrix
void CMat3::setValue | ( | unsigned | line, |
unsigned | column, | ||
float | value | ||
) |
set value at position
std::string CMat3::toString | ( | ) | const |
void CMat3::transpose | ( | ) |
transpose matrix
float CMat3::valueAt | ( | unsigned | i | ) | const |
union { ... } [private] |
float CMat3::fMatrix[9] |