Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Matrix_3x3 Class Reference

3x3-Matrix operations. More...

#include <matrix3.h>

List of all members.

Public Methods

 Matrix_3x3 ()
 Matrix_3x3 (const Matrix_3x3 &)
 Matrix_3x3 (Vector &, Vector &, Vector &)
rvfloat val (int col, int lin) const
void set (int col, int lin, rvfloat val)
rvfloat det (void) const
Vector operator * (Vector &)
Matrix_3x3 operator * (Matrix_3x3 &)
bool is_invertable (void) const
Vector solve (Vector &v) const
Matrix_3x3 invert (void) const
void dump (const char *pref)
rvfloat cofactor (int col, int lin) const

Public Attributes

rvfloat data [3][3]


Detailed Description

3x3-Matrix operations.

Some operations for matrices. Re-Volt uses a 3x3-float-array, where the matrix is encoded as column vectors.

This class is directly written to and read from files.

It may only contain the three coordinates, and nothing more that requires storage memory, like virtual functions.


Constructor & Destructor Documentation

Matrix_3x3::Matrix_3x3 ( void )
 

Matrix_3x3::Matrix_3x3 ( const Matrix_3x3 & mx )
 

Matrix_3x3::Matrix_3x3 ( Vector & v1,
Vector & v2,
Vector & v3 )
 


Member Function Documentation

rvfloat Matrix_3x3::cofactor ( int col,
int lin ) const
 

cofactor of element (col,lin): determinant of sub-matrix (excl. col/lin)

rvfloat Matrix_3x3::det ( void ) const
 

Calculates determinant

void Matrix_3x3::dump ( const char * pref )
 

prints matrix to screen

Matrix_3x3 Matrix_3x3::invert ( void ) const
 

bool Matrix_3x3::is_invertable ( void ) const
 

Matrix_3x3 Matrix_3x3::operator * ( Matrix_3x3 & mx )
 

Vector Matrix_3x3::operator * ( Vector & v )
 

void Matrix_3x3::set ( int col,
int lin,
rvfloat val )
 

Vector Matrix_3x3::solve ( Vector & v ) const
 

Solves M*x = v and returns x

rvfloat Matrix_3x3::val ( int col,
int lin ) const
 


Member Data Documentation

rvfloat Matrix_3x3::data[3][3]
 


The documentation for this class was generated from the following files:
Generated at Fri Jul 26 09:33:58 2002 for rvtmod/rvglue by doxygen1.2.0 written by Dimitri van Heesch, © 1997-2000