altEngine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
matrix4 Class Reference

#include <matrix.h>

Public Member Functions

 matrix4 ()
 
 matrix4 (float m0, float m1, float m2, float m3, float m4, float m5, float m6, float m7, float m8, float m9, float m10, float m11, float m12, float m13, float m14, float m15)
 
matrix4operator= (const matrix4 &q)
 
matrix4operator= (const float *matrix)
 
matrix4 operator+ (const matrix4 &q)
 
matrix4 operator- (const matrix4 &q)
 
matrix4 operator* (const float scalar)
 
matrix4 operator* (const float *matrix)
 
matrix4 premultiply (const float *mat) const
 
vec4 operator* (const vec4 &vec)
 
matrix4 operator* (const matrix4 &q) const
 
void normalize ()
 
matrix4 transpose ()
 
void perspective (float fovy, float aspect, float zNear, float zFar, bool infinite)
 
void ortho (float left, float right, float bottom, float top, float near, float far)
 
matrix4 lookat (const vec3 &eye, vec3 &center, vec3 &up)
 

Static Public Member Functions

static void mat_forward (matrix4 &mvp, vec3 &position)
 
static void mat_right (matrix4 &mvp, vec3 &position)
 
static void mat_backward (matrix4 &mvp, vec3 &position)
 
static void mat_left (matrix4 &mvp, vec3 &position)
 
static void mat_top (matrix4 &mvp, vec3 &position)
 
static void mat_bottom (matrix4 &mvp, vec3 &position)
 

Public Attributes

float m [16]
 

Constructor & Destructor Documentation

matrix4::matrix4 ( )
matrix4::matrix4 ( float  m0,
float  m1,
float  m2,
float  m3,
float  m4,
float  m5,
float  m6,
float  m7,
float  m8,
float  m9,
float  m10,
float  m11,
float  m12,
float  m13,
float  m14,
float  m15 
)

Member Function Documentation

matrix4 matrix4::lookat ( const vec3 eye,
vec3 center,
vec3 up 
)
void matrix4::mat_backward ( matrix4 mvp,
vec3 position 
)
static

Here is the caller graph for this function:

void matrix4::mat_bottom ( matrix4 mvp,
vec3 position 
)
static

Here is the caller graph for this function:

void matrix4::mat_forward ( matrix4 mvp,
vec3 position 
)
static

Here is the caller graph for this function:

void matrix4::mat_left ( matrix4 mvp,
vec3 position 
)
static

Here is the caller graph for this function:

void matrix4::mat_right ( matrix4 mvp,
vec3 position 
)
static

Here is the caller graph for this function:

void matrix4::mat_top ( matrix4 mvp,
vec3 position 
)
static

Here is the caller graph for this function:

void matrix4::normalize ( )

Here is the call graph for this function:

matrix4 matrix4::operator* ( const float  scalar)
matrix4 matrix4::operator* ( const float *  matrix)
vec4 matrix4::operator* ( const vec4 vec)
matrix4 matrix4::operator* ( const matrix4 q) const
matrix4 matrix4::operator+ ( const matrix4 q)
matrix4 matrix4::operator- ( const matrix4 q)
matrix4 & matrix4::operator= ( const matrix4 q)
matrix4 & matrix4::operator= ( const float *  matrix)
void matrix4::ortho ( float  left,
float  right,
float  bottom,
float  top,
float  near,
float  far 
)
void matrix4::perspective ( float  fovy,
float  aspect,
float  zNear,
float  zFar,
bool  infinite 
)

Here is the call graph for this function:

Here is the caller graph for this function:

matrix4 matrix4::premultiply ( const float *  mat) const

Here is the caller graph for this function:

matrix4 matrix4::transpose ( )

Member Data Documentation

float matrix4::m[16]

The documentation for this class was generated from the following files: