RenderTools::Mat2 Class Reference

#include <Matrix.h>

List of all members.

Public Member Functions

 Mat2 (float v00=1.0f, float v01=0.0f, float v10=0.0f, float v11=1.0f)
 --------------------------------Mat2-------------------------------
 Mat2 (const float *)
Vec2 operator* (const Vec2 &) const
Mat2 operator* (float) const
Mat2 operator* (const Mat2 &) const
const float * operator* (void) const
Mat2 operator/ (float) const
const float & operator[] (const int) const
bool operator== (const Mat2 &) const
float & operator[] (int)
Mat2operator*= (const Mat2 &)
Mat2operator*= (float)
Mat2operator/= (float)
Vec2 getRow (int) const
Vec2 getCol (int) const
const float & getElement (int column, int row) const
Mat2 transpose (void) const
float determinant (void) const
Mat2 inverse (void) const
bool equals (const Mat2 &, float epsilon=0.0f) const
bool equals (const float *, float epsilon=0.0f) const
float & getElement (int column, int row)
void setRow (int index, const Vec2 &row)
void setCol (int index, const Vec2 &col)
void setElement (int col, int row, float)
void setIdentity (void)
void setRotation (float radians=0.0f)
void setScaling (const Vec2 &scaling=Vec2(1.0f, 1.0f))

Static Public Member Functions

static Mat2 fromIdentity (void)


Detailed Description

Definition at line 166 of file Matrix.h.


Constructor & Destructor Documentation

RenderTools::Mat2::Mat2 ( float  v00 = 1.0f,
float  v01 = 0.0f,
float  v10 = 0.0f,
float  v11 = 1.0f 
)

--------------------------------Mat2-------------------------------

Definition at line 533 of file Matrix.cpp.

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

Definition at line 540 of file Matrix.cpp.


Member Function Documentation

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

Definition at line 649 of file Matrix.cpp.

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

Definition at line 636 of file Matrix.cpp.

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

Definition at line 632 of file Matrix.cpp.

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

Definition at line 676 of file Matrix.cpp.

Vec2 RenderTools::Mat2::getCol ( int  index  )  const

Definition at line 618 of file Matrix.cpp.

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

Definition at line 602 of file Matrix.cpp.

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

Definition at line 598 of file Matrix.cpp.

Vec2 RenderTools::Mat2::getRow ( int  index  )  const

Definition at line 614 of file Matrix.cpp.

Mat2 RenderTools::Mat2::inverse ( void   )  const

Definition at line 653 of file Matrix.cpp.

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

Definition at line 594 of file Matrix.cpp.

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

Definition at line 551 of file Matrix.cpp.

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

Definition at line 568 of file Matrix.cpp.

Vec2 RenderTools::Mat2::operator* ( const Vec2 b  )  const

Definition at line 544 of file Matrix.cpp.

Mat2& RenderTools::Mat2::operator*= ( float   ) 

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

Definition at line 560 of file Matrix.cpp.

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

Definition at line 577 of file Matrix.cpp.

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

Definition at line 564 of file Matrix.cpp.

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

Definition at line 610 of file Matrix.cpp.

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

Definition at line 586 of file Matrix.cpp.

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

Definition at line 590 of file Matrix.cpp.

void RenderTools::Mat2::setCol ( int  index,
const Vec2 col 
)

Definition at line 627 of file Matrix.cpp.

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

Definition at line 606 of file Matrix.cpp.

void RenderTools::Mat2::setIdentity ( void   ) 

Definition at line 669 of file Matrix.cpp.

void RenderTools::Mat2::setRotation ( float  radians = 0.0f  ) 

void RenderTools::Mat2::setRow ( int  index,
const Vec2 row 
)

Definition at line 622 of file Matrix.cpp.

void RenderTools::Mat2::setScaling ( const Vec2 scaling = Vec2(1.0f, 1.0f)  ) 

Mat2 RenderTools::Mat2::transpose ( void   )  const

Definition at line 645 of file Matrix.cpp.


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