gui::gl::matrix4 Class Reference

#include <gui_gl_matrix4.hpp>

List of all members.

Public Types

typedef float T

Public Member Functions

 matrix4 ()
 matrix4 (std::initializer_list< T > mList)
 matrix4 (T *mat)
Toperator() (size_t i, size_t j)
const Toperator() (size_t i, size_t j) const
Toperator() (size_t i)
const Toperator() (size_t i) const
void make_translation (const vector2f &dx)
void make_scaling (const vector2f &scale)
void make_rotation (float rot)
void make_transformation (const vector2f &dx, const vector2f &scale, float rot)
void transpose ()
void invert ()
matrix4 operator+ (const matrix4 &m)
matrix4 operator- (const matrix4 &m)
matrix4 operator* (const matrix4 &m)
vector2f operator* (const vector2f &v)

Static Public Member Functions

static matrix4 translation (const vector2f &dx)
static matrix4 scaling (const vector2f &scale)
static matrix4 rotation (float rot)
static matrix4 transformation (const vector2f &dx, const vector2f &scale, float rot)
static matrix4 transpose (const matrix4 &m)
static matrix4 invert (const matrix4 &m)

Public Attributes

T data [4][4]

Static Public Attributes

static const matrix4 IDENTITY

Detailed Description

Definition at line 11 of file gui_gl_matrix4.hpp.


Member Typedef Documentation

typedef float gui::gl::matrix4::T

Definition at line 15 of file gui_gl_matrix4.hpp.


Constructor & Destructor Documentation

gui::gl::matrix4::matrix4 (  ) 

Definition at line 14 of file gui_gl_matrix4.cpp.

gui::gl::matrix4::matrix4 ( std::initializer_list< T mList  ) 

Definition at line 18 of file gui_gl_matrix4.cpp.

gui::gl::matrix4::matrix4 ( T mat  ) 

Definition at line 28 of file gui_gl_matrix4.cpp.


Member Function Documentation

matrix4 gui::gl::matrix4::invert ( const matrix4 m  )  [static]

Definition at line 124 of file gui_gl_matrix4.cpp.

void gui::gl::matrix4::invert (  ) 

Definition at line 85 of file gui_gl_matrix4.cpp.

void gui::gl::matrix4::make_rotation ( float  rot  ) 

Definition at line 50 of file gui_gl_matrix4.cpp.

void gui::gl::matrix4::make_scaling ( const vector2f scale  ) 

Definition at line 42 of file gui_gl_matrix4.cpp.

void gui::gl::matrix4::make_transformation ( const vector2f dx,
const vector2f scale,
float  rot 
)

Definition at line 60 of file gui_gl_matrix4.cpp.

void gui::gl::matrix4::make_translation ( const vector2f dx  ) 

Definition at line 34 of file gui_gl_matrix4.cpp.

const T& gui::gl::matrix4::operator() ( size_t  i  )  const [inline]

Definition at line 36 of file gui_gl_matrix4.hpp.

T& gui::gl::matrix4::operator() ( size_t  i  )  [inline]

Definition at line 31 of file gui_gl_matrix4.hpp.

const T& gui::gl::matrix4::operator() ( size_t  i,
size_t  j 
) const [inline]

Definition at line 26 of file gui_gl_matrix4.hpp.

T& gui::gl::matrix4::operator() ( size_t  i,
size_t  j 
) [inline]

Definition at line 21 of file gui_gl_matrix4.hpp.

vector2f gui::gl::matrix4::operator* ( const vector2f v  ) 

Definition at line 269 of file gui_gl_matrix4.cpp.

matrix4 gui::gl::matrix4::operator* ( const matrix4 m  ) 

Definition at line 242 of file gui_gl_matrix4.cpp.

matrix4 gui::gl::matrix4::operator+ ( const matrix4 m  ) 

Definition at line 187 of file gui_gl_matrix4.cpp.

matrix4 gui::gl::matrix4::operator- ( const matrix4 m  ) 

Definition at line 215 of file gui_gl_matrix4.cpp.

matrix4 gui::gl::matrix4::rotation ( float  rot  )  [static]

Definition at line 102 of file gui_gl_matrix4.cpp.

matrix4 gui::gl::matrix4::scaling ( const vector2f scale  )  [static]

Definition at line 96 of file gui_gl_matrix4.cpp.

matrix4 gui::gl::matrix4::transformation ( const vector2f dx,
const vector2f scale,
float  rot 
) [static]

Definition at line 108 of file gui_gl_matrix4.cpp.

matrix4 gui::gl::matrix4::translation ( const vector2f dx  )  [static]

Definition at line 90 of file gui_gl_matrix4.cpp.

matrix4 gui::gl::matrix4::transpose ( const matrix4 m  )  [static]

Definition at line 114 of file gui_gl_matrix4.cpp.

void gui::gl::matrix4::transpose (  ) 

Definition at line 70 of file gui_gl_matrix4.cpp.


Member Data Documentation

Definition at line 62 of file gui_gl_matrix4.hpp.

Initial value:
 {
    1.0f,0.0f,0.0f,0.0f,
    0.0f,1.0f,0.0f,0.0f,
    0.0f,0.0f,1.0f,0.0f,
    0.0f,0.0f,0.0f,1.0f
}

Definition at line 64 of file gui_gl_matrix4.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Tue Jan 1 21:58:13 2013 for gui by  doxygen 1.6.1