RenderTools::Mat3 Class Reference

#include <Matrix.h>

List of all members.

Public Member Functions

 Mat3 (float v00=1.0f, float v01=0.0f, float v02=0.0f, float v10=0.0f, float v11=1.0f, float v12=0.0f, float v20=0.0f, float v21=0.0f, float v22=1.0f)
 --------------------------------Mat3-------------------------------
 Mat3 (const Vec3 &c0, const Vec3 &c1, const Vec3 &c2)
 Mat3 (const float *)
Vec3 operator* (const Vec3 &) const
Mat3 operator* (float) const
Mat3 operator* (const Mat3 &) const
const float * operator* (void) const
Mat3 operator/ (float) const
const float & operator[] (const int) const
bool operator== (const Mat3 &) const
float & operator[] (int)
Mat3operator*= (const Mat3 &)
Mat3operator*= (float)
Mat3operator/= (float)
Vec3 getRow (int) const
Vec3 getCol (int) const
const float & getElement (int column, int row) const
Mat3 transpose (void) const
Mat3 adjugate (void) const
float trace (void) const
float determinant (void) const
Mat3 inverse (void) const
bool equals (const Mat3 &, float epsilon=0.0f) const
bool equals (const float *, float epsilon=0.0f) const
void toAxisAngle (const Vec3 &, float &radians) const
float & getElement (int column, int row)
void setRow (int index, const Vec3 &row)
void setCol (int index, const Vec3 &col)
void setElement (int col, int row, float)
void setIdentity (void)

Static Public Member Functions

static Mat3 fromAxisAngle (const Vec3 &axis, float radians)
static Mat3 fromIdentity ()

Friends

class Quat


Detailed Description

Definition at line 259 of file Matrix.h.


Constructor & Destructor Documentation

RenderTools::Mat3::Mat3 ( float  v00 = 1.0f,
float  v01 = 0.0f,
float  v02 = 0.0f,
float  v10 = 0.0f,
float  v11 = 1.0f,
float  v12 = 0.0f,
float  v20 = 0.0f,
float  v21 = 0.0f,
float  v22 = 1.0f 
)

--------------------------------Mat3-------------------------------

Definition at line 924 of file Matrix.cpp.

RenderTools::Mat3::Mat3 ( const Vec3 c0,
const Vec3 c1,
const Vec3 c2 
)

Definition at line 943 of file Matrix.cpp.

RenderTools::Mat3::Mat3 ( const float *  v  ) 

Definition at line 939 of file Matrix.cpp.


Member Function Documentation

Mat3 RenderTools::Mat3::adjugate ( void   )  const

Definition at line 1102 of file Matrix.cpp.

float RenderTools::Mat3::determinant ( void   )  const

Definition at line 1111 of file Matrix.cpp.

bool RenderTools::Mat3::equals ( const float *  compare,
float  epsilon = 0.0f 
) const

Definition at line 1073 of file Matrix.cpp.

bool RenderTools::Mat3::equals ( const Mat3 compare,
float  epsilon = 0.0f 
) const

Definition at line 1069 of file Matrix.cpp.

static Mat3 RenderTools::Mat3::fromAxisAngle ( const Vec3 axis,
float  radians 
) [static]

Mat3 RenderTools::Mat3::fromIdentity ( void   )  [static]

Definition at line 1144 of file Matrix.cpp.

Vec3 RenderTools::Mat3::getCol ( int  index  )  const

Definition at line 1053 of file Matrix.cpp.

float & RenderTools::Mat3::getElement ( int  column,
int  row 
)

Definition at line 1037 of file Matrix.cpp.

const float & RenderTools::Mat3::getElement ( int  column,
int  row 
) const

Definition at line 1033 of file Matrix.cpp.

Vec3 RenderTools::Mat3::getRow ( int  index  )  const

Definition at line 1049 of file Matrix.cpp.

Mat3 RenderTools::Mat3::inverse ( void   )  const

Definition at line 1121 of file Matrix.cpp.

const float * RenderTools::Mat3::operator* ( void   )  const

Definition at line 1029 of file Matrix.cpp.

Mat3 RenderTools::Mat3::operator* ( const Mat3 b  )  const

Definition at line 963 of file Matrix.cpp.

Mat3 RenderTools::Mat3::operator* ( float  b  )  const

Definition at line 981 of file Matrix.cpp.

Vec3 RenderTools::Mat3::operator* ( const Vec3 b  )  const

Definition at line 955 of file Matrix.cpp.

Mat3 & RenderTools::Mat3::operator*= ( float  b  ) 

Definition at line 1013 of file Matrix.cpp.

Mat3 & RenderTools::Mat3::operator*= ( const Mat3 b  ) 

Definition at line 1009 of file Matrix.cpp.

Mat3 RenderTools::Mat3::operator/ ( float  b  )  const

Definition at line 995 of file Matrix.cpp.

Mat3 & RenderTools::Mat3::operator/= ( float  b  ) 

Definition at line 1017 of file Matrix.cpp.

bool RenderTools::Mat3::operator== ( const Mat3 b  )  const

Definition at line 1045 of file Matrix.cpp.

float & RenderTools::Mat3::operator[] ( int  index  ) 

Definition at line 1021 of file Matrix.cpp.

const float & RenderTools::Mat3::operator[] ( const int  index  )  const

Definition at line 1025 of file Matrix.cpp.

void RenderTools::Mat3::setCol ( int  index,
const Vec3 col 
)

Definition at line 1063 of file Matrix.cpp.

void RenderTools::Mat3::setElement ( int  col,
int  row,
float  v 
)

Definition at line 1041 of file Matrix.cpp.

void RenderTools::Mat3::setIdentity ( void   ) 

Definition at line 1132 of file Matrix.cpp.

void RenderTools::Mat3::setRow ( int  index,
const Vec3 row 
)

Definition at line 1057 of file Matrix.cpp.

void RenderTools::Mat3::toAxisAngle ( const Vec3 ,
float &  radians 
) const

float RenderTools::Mat3::trace ( void   )  const

Definition at line 1117 of file Matrix.cpp.

Mat3 RenderTools::Mat3::transpose ( void   )  const

Definition at line 1082 of file Matrix.cpp.


Friends And Related Function Documentation

friend class Quat [friend]

Definition at line 260 of file Matrix.h.


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

Generated on Wed Jan 26 00:15:36 2011 for RenderTools by  doxygen 1.5.8