grinliz::Matrix4 Class Reference

A 3D homogenous matrix. More...

#include <glmatrix.h>

List of all members.

Friends

void MultMatrix4 (const Matrix4 &a, const Matrix4 &b, Matrix4 *c)
 C = AB.
void MultMatrix4 (const Matrix4 &a, const Vector3F &b, Vector3F *c)
 w = Mv.


Detailed Description

A 3D homogenous matrix.

Although the bottom row is typically 0,0,0,1 this implementation uses the full 4x4 computation.

It uses the (unfortutate) OpenGL layout:

       (  m[0]   m[4]    m[8]   m[12] )    ( v[0])
        | m[1]   m[5]    m[9]   m[13] |    | v[1]|
 M(v) = | m[2]   m[6]   m[10]   m[14] |  x | v[2]|
       (  m[3]   m[7]   m[11]   m[15] )    ( v[3])
	


Friends And Related Function Documentation

void MultMatrix4 ( const Matrix4 a,
const Vector3F &  b,
Vector3F *  c 
) [friend]

w = Mv.

Multiply a vector by a matrix. A vector is a column in column-major form.

void MultMatrix4 ( const Matrix4 a,
const Matrix4 b,
Matrix4 c 
) [friend]

C = AB.

Perform the operation in column-major form, meaning a vector as a columns. Note the target parameter is the last parameter, although it is more comfortable expressed: C = AB


The documentation for this class was generated from the following file:
Generated on Thu Jul 20 20:45:33 2006 for Kyra by  doxygen 1.4.7