#include <mat4.hh>
Public Member Functions | |
Mat4 () | |
Mat4 (Real i00, Real i01, Real i02, Real i03, Real i10, Real i11, Real i12, Real i13, Real i20, Real i21, Real i22, Real i23, Real i30, Real i31, Real i32, Real i33) | |
Mat4 (const Mat4 &m) | |
Mat4 (const Mat2 &m) | |
Mat4 (const Mat3 &m) | |
Mat4 (const float[16]) | |
Mat4 (const double[16]) | |
Mat4 & | operator= (const Mat4 &m) |
bool | operator== (const Mat4 &rhs) const |
const Real & | At (std::size_t r, std::size_t c) const |
Real & | At (std::size_t r, std::size_t c) |
Real & | operator() (std::size_t r, std::size_t c) |
const Real & | operator() (std::size_t r, std::size_t c) const |
Mat4 & | operator+= (const Mat4 &rhs) |
Mat4 & | operator-= (const Mat4 &rhs) |
Mat4 & | operator*= (const Real d) |
Mat4 & | operator/= (const Real d) |
Mat4 & | operator*= (const Mat4 &m) |
Mat3 | ExtractRotation () const |
void | PasteRotation (const Mat3 &m) |
Vec3 | ExtractTranslation () const |
void | PasteTranslation (const Vec3 &v) |
Real * | Data () |
const Real * | Data () const |
Static Public Member Functions | |
static Mat4 | Identity () |
Definition at line 38 of file mat4.hh.
Mat4 | ( | ) |
Default initialization, identity matrix.
Mat4 | ( | Real | i00, | |
Real | i01, | |||
Real | i02, | |||
Real | i03, | |||
Real | i10, | |||
Real | i11, | |||
Real | i12, | |||
Real | i13, | |||
Real | i20, | |||
Real | i21, | |||
Real | i22, | |||
Real | i23, | |||
Real | i30, | |||
Real | i31, | |||
Real | i32, | |||
Real | i33 | |||
) |
In with 16 values in row-major order.
row-major order means that the matrix
| a b c d | | e f g h | | i j k l | | m n o p |
is initialized with (a,b,c,d, e,f,g,h, i,j,k,l, m,n,o,p)
Mat4 | ( | const | float[16] | ) | [explicit] |
initialization from array
Mat4 | ( | const | double[16] | ) | [explicit] |
const Real& At | ( | std::size_t | r, | |
std::size_t | c | |||
) | const [inline] |
Mat3 ExtractRotation | ( | ) | const |
Vec3 ExtractTranslation | ( | ) | const |
static Mat4 Identity | ( | ) | [static] |
const Real& operator() | ( | std::size_t | r, | |
std::size_t | c | |||
) | const [inline] |
bool operator== | ( | const Mat4 & | rhs | ) | const |
comparable
void PasteRotation | ( | const Mat3 & | m | ) |
void PasteTranslation | ( | const Vec3 & | v | ) |