Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

matrix4x4.cpp File Reference


Detailed Description

Implementation of the Matrix4x4 class.

#include "matrix4x4.h"
#include <iostream>

Include dependency graph for matrix4x4.cpp:

Include dependency graph

Functions

Matrix4x4 makeInverse (const Matrix4x4 &in)
 Create a matrix that is the inverse of the matrix passed to it.

Variables

const float IDENTITY [16] = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1}
 Const to create identity matrices.
const float EMPTY [16] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
 Const to create zeroed matrices.

Function Documentation

Matrix4x4 makeInverse const Matrix4x4 in  ) 
 

Create a matrix that is the inverse of the matrix passed to it.

This assumes the matrix coming in is affine. Code taken from the "Essential Mathematics . ." book. This also appears to ignore the translation on the principle we know what the inverse of THAT is.

Returns:
Empty matrix if input is non-invertible.

Here is the call graph for this function:


Generated on Mon Jan 3 15:14:19 2005 for Graviton by  doxygen 1.3.9.1