#include <FXMat3f.h>
Public Member Functions | |
FXMat3f () | |
FXMat3f (const FXMat3f &other) | |
FXMat3f (FXfloat w) | |
FXMat3f (FXfloat a00, FXfloat a01, FXfloat a02, FXfloat a10, FXfloat a11, FXfloat a12, FXfloat a20, FXfloat a21, FXfloat a22) | |
FXMat3f (const FXVec3f &a, const FXVec3f &b, const FXVec3f &c) | |
FXMat3f (const FXQuatf &quat) | |
FXMat3f & | operator= (const FXMat3f &other) |
FXMat3f & | operator= (FXfloat w) |
FXMat3f & | set (const FXMat3f &other) |
FXMat3f & | set (FXfloat w) |
FXMat3f & | set (FXfloat a00, FXfloat a01, FXfloat a02, FXfloat a10, FXfloat a11, FXfloat a12, FXfloat a20, FXfloat a21, FXfloat a22) |
FXMat3f & | set (const FXVec3f &a, const FXVec3f &b, const FXVec3f &c) |
FXMat3f & | set (const FXQuatf &quat) |
FXMat3f & | operator+= (const FXMat3f &w) |
FXMat3f & | operator-= (const FXMat3f &w) |
FXMat3f & | operator*= (FXfloat w) |
FXMat3f & | operator*= (const FXMat3f &w) |
FXMat3f & | operator/= (FXfloat w) |
FXVec3f & | operator[] (FXint i) |
const FXVec3f & | operator[] (FXint i) const |
operator FXfloat * () | |
operator const FXfloat * () const | |
FXMat3f | operator- () const |
FXMat3f | operator+ (const FXMat3f &w) const |
FXMat3f | operator- (const FXMat3f &w) const |
FXMat3f | operator* (const FXMat3f &w) const |
FXVec3f | operator* (const FXVec3f &v) const |
FXVec2f | operator* (const FXVec2f &v) const |
FXMat3f & | eye () |
FXMat3f & | rot (FXfloat c, FXfloat s) |
FXMat3f & | rot (FXfloat phi) |
FXMat3f & | trans (FXfloat tx, FXfloat ty) |
FXMat3f & | scale (FXfloat sx, FXfloat sy) |
FXMat3f & | scale (FXfloat s) |
FXfloat | det () const |
FXMat3f | transpose () const |
FXMat3f | invert () const |
Protected Attributes | |
FXVec3f | m [3] |
Friends | |
FXAPI FXMat3f | operator* (FXfloat x, const FXMat3f &a) |
FXAPI FXMat3f | operator* (const FXMat3f &a, FXfloat x) |
FXAPI FXMat3f | operator/ (const FXMat3f &a, FXfloat x) |
FXAPI FXMat3f | operator/ (FXfloat x, const FXMat3f &a) |
FXAPI FXStream & | operator<< (FXStream &store, const FXMat3f &m) |
FXAPI FXStream & | operator>> (FXStream &store, FXMat3f &m) |
FX::FXMat3f::FXMat3f | ( | ) | [inline] |
Default constructor.
FX::FXMat3f::FXMat3f | ( | const FXMat3f & | other | ) |
Initialize matrix from another matrix.
FX::FXMat3f::FXMat3f | ( | FXfloat | w | ) |
Initialize matrix from scalar.
FX::FXMat3f::FXMat3f | ( | FXfloat | a00, | |
FXfloat | a01, | |||
FXfloat | a02, | |||
FXfloat | a10, | |||
FXfloat | a11, | |||
FXfloat | a12, | |||
FXfloat | a20, | |||
FXfloat | a21, | |||
FXfloat | a22 | |||
) |
Initialize matrix from components.
Initialize matrix from three vectors.
FX::FXMat3f::FXMat3f | ( | const FXQuatf & | quat | ) |
Initialize matrix from quaternion.
FXMat3f& FX::FXMat3f::set | ( | FXfloat | w | ) |
Set value from scalar.
FXMat3f& FX::FXMat3f::set | ( | FXfloat | a00, | |
FXfloat | a01, | |||
FXfloat | a02, | |||
FXfloat | a10, | |||
FXfloat | a11, | |||
FXfloat | a12, | |||
FXfloat | a20, | |||
FXfloat | a21, | |||
FXfloat | a22 | |||
) |
Set value from components.
Set value from three vectors.
FXVec3f& FX::FXMat3f::operator[] | ( | FXint | i | ) | [inline] |
Indexing.
FX::FXMat3f::operator FXfloat * | ( | ) | [inline] |
Conversion.
FXMat3f FX::FXMat3f::operator- | ( | ) | const |
Unary minus.
FXMat3f& FX::FXMat3f::eye | ( | ) |
Set identity matrix.
FXMat3f& FX::FXMat3f::rot | ( | FXfloat | c, | |
FXfloat | s | |||
) |
Multiply by rotation of phi.
FXMat3f& FX::FXMat3f::trans | ( | FXfloat | tx, | |
FXfloat | ty | |||
) |
Multiply by translation.
FXMat3f& FX::FXMat3f::scale | ( | FXfloat | sx, | |
FXfloat | sy | |||
) |
Multiply by scaling.
FXfloat FX::FXMat3f::det | ( | ) | const |
Determinant.
FXMat3f FX::FXMat3f::transpose | ( | ) | const |
Transpose.
FXMat3f FX::FXMat3f::invert | ( | ) | const |
Invert.