Public Member Functions | Public Attributes
CMat2 Class Reference

#include <mat2.h>

List of all members.

Public Member Functions

 CMat2 ()
 CMat2 (float rot)
bool invert ()
void loadIdentity ()
void makeRotation (float fA)
CMat2 operator* (const CMat2 &mat) const
CVec2 operator* (const CVec2 &v) const
Point2D operator* (const Point2D &p) const
CMat2 operator+ (const CMat2 rhs) const
CMat2 operator- (const CMat2 rhs) const
float & operator[] (unsigned int position)
void transpose ()
float valueAt (unsigned int position) const
 ~CMat2 ()

Public Attributes

union {
   struct {
      float   xx
      float   xy
      float   yx
      float   yy
   } 
   float   fMatrix [4]
   float   m [2][2]
}; 

Detailed Description

Definition at line 17 of file mat2.h.


Constructor & Destructor Documentation

CMat2::CMat2 ( ) [inline]

Definition at line 12 of file mat2_inl.h.

CMat2::CMat2 ( float  rot) [inline]

Definition at line 21 of file mat2_inl.h.

CMat2::~CMat2 ( ) [inline]

Definition at line 18 of file mat2_inl.h.


Member Function Documentation

bool CMat2::invert ( ) [inline]

Definition at line 67 of file mat2_inl.h.

void CMat2::loadIdentity ( ) [inline]

Definition at line 54 of file mat2_inl.h.

void CMat2::makeRotation ( float  fA) [inline]

Definition at line 60 of file mat2_inl.h.

CMat2 CMat2::operator* ( const CMat2 mat) const [inline]

Definition at line 26 of file mat2_inl.h.

CVec2 CMat2::operator* ( const CVec2 v) const [inline]

Definition at line 37 of file mat2_inl.h.

Point2D CMat2::operator* ( const Point2D &  p) const [inline]

Definition at line 42 of file mat2_inl.h.

CMat2 CMat2::operator+ ( const CMat2  rhs) const [inline]

Definition at line 34 of file mat2.h.

CMat2 CMat2::operator- ( const CMat2  rhs) const [inline]

Definition at line 42 of file mat2.h.

float& CMat2::operator[] ( unsigned int  position) [inline]

Definition at line 30 of file mat2.h.

void CMat2::transpose ( ) [inline]

Definition at line 47 of file mat2_inl.h.

float CMat2::valueAt ( unsigned int  position) const [inline]

Definition at line 50 of file mat2.h.


Member Data Documentation

union { ... }
float CMat2::fMatrix[4]

Definition at line 56 of file mat2.h.

float CMat2::m[2][2]

Definition at line 57 of file mat2.h.

float CMat2::xx

Definition at line 60 of file mat2.h.

float CMat2::xy

Definition at line 60 of file mat2.h.

float CMat2::yx

Definition at line 61 of file mat2.h.

float CMat2::yy

Definition at line 61 of file mat2.h.


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


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