TORCS  1.3.9
The Open Racing Car Simulator
Matrix Class Reference

#include <Matrix.h>

Public Member Functions

 Matrix ()
 
 Matrix (const float *m)
 
 Matrix (const double *m)
 
 Matrix (const Quaternion &q)
 
 Matrix (Scalar x, Scalar y, Scalar z)
 
 Matrix (Scalar xx, Scalar xy, Scalar xz, Scalar yx, Scalar yy, Scalar yz, Scalar zx, Scalar zy, Scalar zz)
 
Vectoroperator[] (int i)
 
const Vectoroperator[] (int i) const
 
Mat3getValue ()
 
const Mat3getValue () const
 
void setValue (const float *m)
 
void setValue (const double *m)
 
void setValue (Scalar xx, Scalar xy, Scalar xz, Scalar yx, Scalar yy, Scalar yz, Scalar zx, Scalar zy, Scalar zz)
 
void setRotation (const Quaternion &q)
 
void setScaling (Scalar x, Scalar y, Scalar z)
 
void setIdentity ()
 
Matrixoperator*= (const Matrix &m)
 
Scalar tdot (int i, const Vector &v) const
 
Scalar determinant () const
 
Matrix absolute () const
 
Matrix transpose () const
 
Matrix adjoint () const
 
Matrix inverse () const
 

Protected Attributes

Mat3 elem
 

Detailed Description

Definition at line 37 of file Matrix.h.

Constructor & Destructor Documentation

◆ Matrix() [1/6]

Matrix::Matrix ( )
inline

Definition at line 39 of file Matrix.h.

◆ Matrix() [2/6]

Matrix::Matrix ( const float *  m)
inline

Definition at line 40 of file Matrix.h.

Here is the call graph for this function:

◆ Matrix() [3/6]

Matrix::Matrix ( const double *  m)
inline

Definition at line 41 of file Matrix.h.

Here is the call graph for this function:

◆ Matrix() [4/6]

Matrix::Matrix ( const Quaternion q)
inline

Definition at line 42 of file Matrix.h.

Here is the call graph for this function:

◆ Matrix() [5/6]

Matrix::Matrix ( Scalar  x,
Scalar  y,
Scalar  z 
)
inline

Definition at line 43 of file Matrix.h.

Here is the call graph for this function:

◆ Matrix() [6/6]

Matrix::Matrix ( Scalar  xx,
Scalar  xy,
Scalar  xz,
Scalar  yx,
Scalar  yy,
Scalar  yz,
Scalar  zx,
Scalar  zy,
Scalar  zz 
)
inline

Definition at line 44 of file Matrix.h.

Here is the call graph for this function:

Member Function Documentation

◆ absolute()

Matrix Matrix::absolute ( ) const
inline

Definition at line 143 of file Matrix.h.

Here is the call graph for this function:

◆ adjoint()

Matrix Matrix::adjoint ( ) const
inline

Definition at line 155 of file Matrix.h.

Here is the call graph for this function:

◆ determinant()

Scalar Matrix::determinant ( ) const
inline

Definition at line 139 of file Matrix.h.

Here is the call graph for this function:

◆ getValue() [1/2]

Mat3& Matrix::getValue ( )
inline

Definition at line 53 of file Matrix.h.

◆ getValue() [2/2]

const Mat3& Matrix::getValue ( ) const
inline

Definition at line 54 of file Matrix.h.

◆ inverse()

Matrix Matrix::inverse ( ) const
inline

Definition at line 167 of file Matrix.h.

Here is the call graph for this function:

◆ operator*=()

Matrix & Matrix::operator*= ( const Matrix m)
inline

Definition at line 126 of file Matrix.h.

Here is the call graph for this function:

◆ operator[]() [1/2]

Vector& Matrix::operator[] ( int  i)
inline

Definition at line 50 of file Matrix.h.

◆ operator[]() [2/2]

const Vector& Matrix::operator[] ( int  i) const
inline

Definition at line 51 of file Matrix.h.

◆ setIdentity()

void Matrix::setIdentity ( )
inline

Definition at line 93 of file Matrix.h.

Here is the call graph for this function:

◆ setRotation()

void Matrix::setRotation ( const Quaternion q)
inline

Definition at line 76 of file Matrix.h.

Here is the call graph for this function:

◆ setScaling()

void Matrix::setScaling ( Scalar  x,
Scalar  y,
Scalar  z 
)
inline

Definition at line 89 of file Matrix.h.

Here is the call graph for this function:

◆ setValue() [1/3]

void Matrix::setValue ( const float *  m)
inline

Definition at line 56 of file Matrix.h.

◆ setValue() [2/3]

void Matrix::setValue ( const double *  m)
inline

Definition at line 62 of file Matrix.h.

◆ setValue() [3/3]

void Matrix::setValue ( Scalar  xx,
Scalar  xy,
Scalar  xz,
Scalar  yx,
Scalar  yy,
Scalar  yz,
Scalar  zx,
Scalar  zy,
Scalar  zz 
)
inline

Definition at line 68 of file Matrix.h.

◆ tdot()

Scalar Matrix::tdot ( int  i,
const Vector v 
) const
inline

Definition at line 97 of file Matrix.h.

◆ transpose()

Matrix Matrix::transpose ( ) const
inline

Definition at line 149 of file Matrix.h.

Here is the call graph for this function:

Member Data Documentation

◆ elem

Mat3 Matrix::elem
protected

Definition at line 108 of file Matrix.h.


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