Public Member Functions | Private Attributes
CMat3 Class Reference

#include <mat3.h>

List of all members.

Public Member Functions

 CMat3 ()
 CMat3 (float xx, float xy, float xz, float yx, float yy, float yz, float zx, float zy, float zz)
float determinant () const
void loadIdentity ()
void makeRotationX (float fA)
void makeRotationY (float fA)
void makeRotationZ (float fA)
void makeScale (const Vector3D &vScale)
CMat3 operator* (const CMat3 &mat) const
CMat3 operator* (float f) const
Vector3D operator* (const Vector3D &v) const
CMat3operator*= (float f)
CMat3 operator+ (const CMat3 &mat1)
float & operator[] (const unsigned value)
void reverse ()
void setValue (unsigned line, unsigned column, float value)
std::string toString () const
void transpose ()
float valueAt (unsigned i) const
 ~CMat3 ()

Private Attributes

union {
   struct {
      float   xx
      float   xy
      float   xz
      float   yx
      float   yy
      float   yz
      float   zx
      float   zy
      float   zz
   } 
   float   fMatrix [9]
   float   m [3][3]
}; 

Detailed Description

Definition at line 17 of file mat3.h.


Constructor & Destructor Documentation

CMat3::CMat3 ( float  xx,
float  xy,
float  xz,
float  yx,
float  yy,
float  yz,
float  zx,
float  zy,
float  zz 
)

Member Function Documentation

float CMat3::determinant ( ) const
Returns:
determinant of matrix

create identity matrix

void CMat3::makeRotationX ( float  fA)

create rotation matrix

void CMat3::makeRotationY ( float  fA)
void CMat3::makeRotationZ ( float  fA)
void CMat3::makeScale ( const Vector3D vScale)

create scale matrix

CMat3 CMat3::operator* ( const CMat3 mat) const

overwritten operator

CMat3 CMat3::operator* ( float  f) const
Vector3D CMat3::operator* ( const Vector3D v) const
CMat3& CMat3::operator*= ( float  f)
CMat3 CMat3::operator+ ( const CMat3 mat1)
float& CMat3::operator[] ( const unsigned  value)
void CMat3::reverse ( )

reverse matrix

void CMat3::setValue ( unsigned  line,
unsigned  column,
float  value 
)

set value at position

std::string CMat3::toString ( ) const
void CMat3::transpose ( )

transpose matrix

float CMat3::valueAt ( unsigned  i) const
Returns:
value at position

Member Data Documentation

union { ... } [private]
float CMat3::fMatrix[9]

Definition at line 62 of file mat3.h.

float CMat3::m[3][3]

Definition at line 63 of file mat3.h.

float CMat3::xx

Definition at line 66 of file mat3.h.

float CMat3::xy

Definition at line 66 of file mat3.h.

float CMat3::xz

Definition at line 66 of file mat3.h.

float CMat3::yx

Definition at line 67 of file mat3.h.

float CMat3::yy

Definition at line 67 of file mat3.h.

float CMat3::yz

Definition at line 67 of file mat3.h.

float CMat3::zx

Definition at line 68 of file mat3.h.

float CMat3::zy

Definition at line 68 of file mat3.h.

float CMat3::zz

Definition at line 68 of file mat3.h.


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


robbie_architecture
Author(s): Viktor Seib
autogenerated on Mon Oct 6 2014 02:53:09