`#include <ddgmatrx.h>`

## Public Members | |||

ddgMatrix4 (void) | |||

Default constructor. | |||

float& | operator[] (int i) | ||

Return an Vector element from the matrix. | |||

float& | operator() (int i, int j) | ||

Get a matrix value using [i,j] notation. | |||

float& | operator() (int i) | ||

Get a matrix value using a 0-15 index. | |||

ddgMatrix4& | operator+= ( const ddgMatrix4& m1 ) | ||

Addition. | |||

ddgMatrix4& | operator-= ( const ddgMatrix4& m1 ) | ||

Subtraction. | |||

ddgMatrix4& | operator *= ( const ddgMatrix4& m1 ) | ||

Multiplication of this by another matrix. | |||

ddgMatrix4& | operator *= ( const float d )
| ||

ddgMatrix4& | operator/= ( const float d )
| ||

ddgMatrix4& | operator= (const ddgMatrix4& s) | ||

Assign one matrix to another. | |||

void | identity (void) | ||

Load the identity matrix. | |||

ddgMatrix4 ( ddgVector4 *v1, ddgVector4 *v2, ddgVector4 *v3, ddgVector4 *v4) | |||

Set a matrix to the value of 4 vectors. | |||

ddgMatrix4 ( float u[16] ) | |||

Set a matrix to the value of a 16 element float array. | |||

void | assignto ( float u[16] ) | ||

Assign the value of a matrix to a 16 element float array. | |||

operator float * () | |||

Return object a pointer to array of floats. | |||

void | invert (void) | ||

Find the inverset matrix A' such that A A' = I (identity). | |||

void | transpose (void) | ||

Transpose this matrix. | |||

ddgVector4 | m [4] | ||

A matrix is composed of 4 vectors. | |||

## Friends | |||

ddgMatrix4 | operator * ( const ddgMatrix4& m1, const ddgMatrix4& m2 ) | ||

Multiply 2 matrices together and return result. | |||

ddgVector4 | operator * (const ddgMatrix4& a, const ddgVector4& v) | ||

Multiply a vector by a matrix (transform it). | |||

class | operator- | ||

class | operator+ | ||

class | operator- | ||

class | operator/ | ||

class | operator== | ||

class | operator!= |

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

- ddgmatrx.h
- ddgmatrx.cpp

Generated at Sun Sep 17 19:27:55 2000 for Digital Dawn Graphics Toolkit by 0.49-991205 written by Dimitri van Heesch, © 1997-1999