#include <FXMat4d.h>
Public Member Functions | |
FXMat4d () | |
FXMat4d (FXdouble w) | |
FXMat4d (FXdouble a00, FXdouble a01, FXdouble a02, FXdouble a03, FXdouble a10, FXdouble a11, FXdouble a12, FXdouble a13, FXdouble a20, FXdouble a21, FXdouble a22, FXdouble a23, FXdouble a30, FXdouble a31, FXdouble a32, FXdouble a33) | |
FXMat4d (const FXVec4d &a, const FXVec4d &b, const FXVec4d &c, const FXVec4d &d) | |
FXMat4d (const FXMat4d &other) | |
FXMat4d & | operator= (const FXMat4d &other) |
FXMat4d & | operator= (FXdouble w) |
FXMat4d & | set (const FXMat4d &other) |
FXMat4d & | set (FXdouble w) |
FXMat4d & | set (FXdouble a00, FXdouble a01, FXdouble a02, FXdouble a03, FXdouble a10, FXdouble a11, FXdouble a12, FXdouble a13, FXdouble a20, FXdouble a21, FXdouble a22, FXdouble a23, FXdouble a30, FXdouble a31, FXdouble a32, FXdouble a33) |
FXMat4d & | set (const FXVec4d &a, const FXVec4d &b, const FXVec4d &c, const FXVec4d &d) |
FXMat4d & | operator+= (const FXMat4d &w) |
FXMat4d & | operator-= (const FXMat4d &w) |
FXMat4d & | operator*= (FXdouble w) |
FXMat4d & | operator*= (const FXMat4d &w) |
FXMat4d & | operator/= (FXdouble w) |
FXVec4d & | operator[] (FXint i) |
const FXVec4d & | operator[] (FXint i) const |
operator FXdouble * () | |
operator const FXdouble * () const | |
FXMat4d | operator- () const |
FXMat4d | operator+ (const FXMat4d &w) const |
FXMat4d | operator- (const FXMat4d &w) const |
FXMat4d | operator* (const FXMat4d &w) const |
FXVec4d | operator* (const FXVec4d &v) const |
FXVec3d | operator* (const FXVec3d &v) const |
FXMat4d & | eye () |
FXMat4d & | ortho (FXdouble left, FXdouble right, FXdouble bottom, FXdouble top, FXdouble hither, FXdouble yon) |
FXMat4d & | frustum (FXdouble left, FXdouble right, FXdouble bottom, FXdouble top, FXdouble hither, FXdouble yon) |
FXMat4d & | left () |
FXMat4d & | rot (const FXQuatd &q) |
FXMat4d & | rot (const FXVec3d &v, FXdouble c, FXdouble s) |
FXMat4d & | rot (const FXVec3d &v, FXdouble phi) |
FXMat4d & | xrot (FXdouble c, FXdouble s) |
FXMat4d & | xrot (FXdouble phi) |
FXMat4d & | yrot (FXdouble c, FXdouble s) |
FXMat4d & | yrot (FXdouble phi) |
FXMat4d & | zrot (FXdouble c, FXdouble s) |
FXMat4d & | zrot (FXdouble phi) |
FXMat4d & | look (const FXVec3d &eye, const FXVec3d &cntr, const FXVec3d &vup) |
FXMat4d & | trans (FXdouble tx, FXdouble ty, FXdouble tz) |
FXMat4d & | trans (const FXVec3d &v) |
FXMat4d & | scale (FXdouble sx, FXdouble sy, FXdouble sz) |
FXMat4d & | scale (FXdouble s) |
FXMat4d & | scale (const FXVec3d &v) |
FXdouble | det () const |
FXMat4d | transpose () const |
FXMat4d | invert () const |
Protected Attributes | |
FXVec4d | m [4] |
Friends | |
FXAPI FXMat4d | operator* (FXdouble x, const FXMat4d &a) |
FXAPI FXMat4d | operator* (const FXMat4d &a, FXdouble x) |
FXAPI FXMat4d | operator/ (const FXMat4d &a, FXdouble x) |
FXAPI FXMat4d | operator/ (FXdouble x, const FXMat4d &a) |
FXAPI FXStream & | operator<< (FXStream &store, const FXMat4d &m) |
FXAPI FXStream & | operator>> (FXStream &store, FXMat4d &m) |
FX::FXMat4d::FXMat4d | ( | ) | [inline] |
Constructors.
FXMat4d& FX::FXMat4d::set | ( | FXdouble | w | ) |
Set value from scalar.
FXMat4d& FX::FXMat4d::set | ( | FXdouble | a00, | |
FXdouble | a01, | |||
FXdouble | a02, | |||
FXdouble | a03, | |||
FXdouble | a10, | |||
FXdouble | a11, | |||
FXdouble | a12, | |||
FXdouble | a13, | |||
FXdouble | a20, | |||
FXdouble | a21, | |||
FXdouble | a22, | |||
FXdouble | a23, | |||
FXdouble | a30, | |||
FXdouble | a31, | |||
FXdouble | a32, | |||
FXdouble | a33 | |||
) |
Set value from components.
FXMat4d& FX::FXMat4d::set | ( | const FXVec4d & | a, | |
const FXVec4d & | b, | |||
const FXVec4d & | c, | |||
const FXVec4d & | d | |||
) |
Set value from four vectors.
FXVec4d& FX::FXMat4d::operator[] | ( | FXint | i | ) | [inline] |
Indexing.
FX::FXMat4d::operator FXdouble * | ( | ) | [inline] |
Conversion.
FXMat4d FX::FXMat4d::operator- | ( | ) | const |
Unary minus.
FXMat4d& FX::FXMat4d::eye | ( | ) |
Set identity matrix.
FXMat4d& FX::FXMat4d::ortho | ( | FXdouble | left, | |
FXdouble | right, | |||
FXdouble | bottom, | |||
FXdouble | top, | |||
FXdouble | hither, | |||
FXdouble | yon | |||
) |
Orthographic projection.
FXMat4d& FX::FXMat4d::frustum | ( | FXdouble | left, | |
FXdouble | right, | |||
FXdouble | bottom, | |||
FXdouble | top, | |||
FXdouble | hither, | |||
FXdouble | yon | |||
) |
Perspective projection.
FXMat4d& FX::FXMat4d::left | ( | ) |
Multiply by left-hand matrix.
Multiply by rotation c,s about axis.
Multiply by rotation of phi about axis.
FXMat4d& FX::FXMat4d::xrot | ( | FXdouble | c, | |
FXdouble | s | |||
) |
Multiply by x-rotation.
FXMat4d& FX::FXMat4d::yrot | ( | FXdouble | c, | |
FXdouble | s | |||
) |
Multiply by y-rotation.
FXMat4d& FX::FXMat4d::zrot | ( | FXdouble | c, | |
FXdouble | s | |||
) |
Multiply by z-rotation.
Look at.
FXMat4d& FX::FXMat4d::trans | ( | FXdouble | tx, | |
FXdouble | ty, | |||
FXdouble | tz | |||
) |
Multiply by translation.
FXMat4d& FX::FXMat4d::scale | ( | FXdouble | sx, | |
FXdouble | sy, | |||
FXdouble | sz | |||
) |
Multiply by scaling.
FXdouble FX::FXMat4d::det | ( | ) | const |
Determinant.
FXMat4d FX::FXMat4d::transpose | ( | ) | const |
Transpose.
FXMat4d FX::FXMat4d::invert | ( | ) | const |
Invert.