gml_ElMat4.h File Reference


Detailed Description

Elementar 4x4 matrix, 4x1 and 1x4 vector operations.

Matrices are column-major (columns stored in sequence).

Matrix inversion from Cramer's rule technique as reported and implemented in http://www.intel.com/design/pentiumiii/sml/24504301.pdf

#include <math.h>
#include "gml/base/gml_Errors.h"

Go to the source code of this file.


Functions

template<class T>
gml_TError gml_EM4_Invert (T *m, T *i)
 inverts the 4x4 matrix m and stores the result in the 4x4 matrix i. m and i MUST point to non overlapping memory. returns an error if m is not invertible.
template<class T>
void gml_EM4_MultVxM (T *v, T *m, T *r)
 Multiplies the 1x4 vector v to the 4x4 matrix m and stores the result in the 1x4 vector r.
template<class T>
void gml_EM4_MultMxV (T *m, T *v, T *r)
 Multiplies the 4x4 matrix m to the 4x1 vector v and stores the result in the 4x1 vector r.
template<class T>
void gml_EM4_MultMxM (T *m1, T *m2, T *r)
 Multiplies the 4x4 matrix m1 to the 4x4 matrix m2 and stores the result in the 4x4 matrix r.
template<class T>
void gml_EM4_SetToID (T *i)
 Set the matrix i to the identity matrix.
Generated on Tue Jun 12 14:03:28 2007 for gml by Doxygen 1.5.2.