doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | Friends | List of all members
idMat2 Class Reference

#include <Matrix.h>

Public Member Functions

 idMat2 (void)
 
 idMat2 (const idVec2 &x, const idVec2 &y)
 
 idMat2 (const float xx, const float xy, const float yx, const float yy)
 
 idMat2 (const float src[2][2])
 
const idVec2operator[] (int index) const
 
idVec2operator[] (int index)
 
idMat2 operator- () const
 
idMat2 operator* (const float a) const
 
idVec2 operator* (const idVec2 &vec) const
 
idMat2 operator* (const idMat2 &a) const
 
idMat2 operator+ (const idMat2 &a) const
 
idMat2 operator- (const idMat2 &a) const
 
idMat2operator*= (const float a)
 
idMat2operator*= (const idMat2 &a)
 
idMat2operator+= (const idMat2 &a)
 
idMat2operator-= (const idMat2 &a)
 
bool Compare (const idMat2 &a) const
 
bool Compare (const idMat2 &a, const float epsilon) const
 
bool operator== (const idMat2 &a) const
 
bool operator!= (const idMat2 &a) const
 
void Zero (void)
 
void Identity (void)
 
bool IsIdentity (const float epsilon=MATRIX_EPSILON) const
 
bool IsSymmetric (const float epsilon=MATRIX_EPSILON) const
 
bool IsDiagonal (const float epsilon=MATRIX_EPSILON) const
 
float Trace (void) const
 
float Determinant (void) const
 
idMat2 Transpose (void) const
 
idMat2TransposeSelf (void)
 
idMat2 Inverse (void) const
 
bool InverseSelf (void)
 
idMat2 InverseFast (void) const
 
bool InverseFastSelf (void)
 
int GetDimension (void) const
 
const floatToFloatPtr (void) const
 
floatToFloatPtr (void)
 
const char * ToString (int precision=2) const
 

Private Attributes

idVec2 mat [2]
 

Friends

idMat2 operator* (const float a, const idMat2 &mat)
 
idVec2 operator* (const idVec2 &vec, const idMat2 &mat)
 
idVec2operator*= (idVec2 &vec, const idMat2 &mat)
 

Detailed Description

Definition at line 55 of file Matrix.h.

Constructor & Destructor Documentation

ID_INLINE idMat2::idMat2 ( void  )

Definition at line 113 of file Matrix.h.

ID_INLINE idMat2::idMat2 ( const idVec2 x,
const idVec2 y 
)
explicit

Definition at line 116 of file Matrix.h.

ID_INLINE idMat2::idMat2 ( const float  xx,
const float  xy,
const float  yx,
const float  yy 
)
explicit

Definition at line 121 of file Matrix.h.

ID_INLINE idMat2::idMat2 ( const float  src[2][2])
explicit

Definition at line 126 of file Matrix.h.

Member Function Documentation

ID_INLINE bool idMat2::Compare ( const idMat2 a) const

Definition at line 222 of file Matrix.h.

ID_INLINE bool idMat2::Compare ( const idMat2 a,
const float  epsilon 
) const

Definition at line 230 of file Matrix.h.

ID_INLINE float idMat2::Determinant ( void  ) const

Definition at line 275 of file Matrix.h.

ID_INLINE int idMat2::GetDimension ( void  ) const

Definition at line 312 of file Matrix.h.

ID_INLINE void idMat2::Identity ( void  )

Definition at line 251 of file Matrix.h.

ID_INLINE idMat2 idMat2::Inverse ( void  ) const

Definition at line 294 of file Matrix.h.

ID_INLINE idMat2 idMat2::InverseFast ( void  ) const

Definition at line 303 of file Matrix.h.

bool idMat2::InverseFastSelf ( void  )

Definition at line 74 of file Matrix.cpp.

bool idMat2::InverseSelf ( void  )

Definition at line 47 of file Matrix.cpp.

ID_INLINE bool idMat2::IsDiagonal ( const float  epsilon = MATRIX_EPSILON) const

Definition at line 263 of file Matrix.h.

ID_INLINE bool idMat2::IsIdentity ( const float  epsilon = MATRIX_EPSILON) const

Definition at line 255 of file Matrix.h.

ID_INLINE bool idMat2::IsSymmetric ( const float  epsilon = MATRIX_EPSILON) const

Definition at line 259 of file Matrix.h.

ID_INLINE bool idMat2::operator!= ( const idMat2 a) const

Definition at line 242 of file Matrix.h.

ID_INLINE idMat2 idMat2::operator* ( const float  a) const

Definition at line 159 of file Matrix.h.

ID_INLINE idVec2 idMat2::operator* ( const idVec2 vec) const

Definition at line 145 of file Matrix.h.

ID_INLINE idMat2 idMat2::operator* ( const idMat2 a) const

Definition at line 151 of file Matrix.h.

ID_INLINE idMat2 & idMat2::operator*= ( const float  a)

Definition at line 177 of file Matrix.h.

ID_INLINE idMat2 & idMat2::operator*= ( const idMat2 a)

Definition at line 184 of file Matrix.h.

ID_INLINE idMat2 idMat2::operator+ ( const idMat2 a) const

Definition at line 165 of file Matrix.h.

ID_INLINE idMat2 & idMat2::operator+= ( const idMat2 a)

Definition at line 195 of file Matrix.h.

ID_INLINE idMat2 idMat2::operator- ( ) const

Definition at line 140 of file Matrix.h.

ID_INLINE idMat2 idMat2::operator- ( const idMat2 a) const

Definition at line 171 of file Matrix.h.

ID_INLINE idMat2 & idMat2::operator-= ( const idMat2 a)

Definition at line 202 of file Matrix.h.

ID_INLINE bool idMat2::operator== ( const idMat2 a) const

Definition at line 238 of file Matrix.h.

ID_INLINE const idVec2 & idMat2::operator[] ( int  index) const

Definition at line 130 of file Matrix.h.

ID_INLINE idVec2 & idMat2::operator[] ( int  index)

Definition at line 135 of file Matrix.h.

ID_INLINE const float * idMat2::ToFloatPtr ( void  ) const

Definition at line 316 of file Matrix.h.

ID_INLINE float * idMat2::ToFloatPtr ( void  )

Definition at line 320 of file Matrix.h.

const char * idMat2::ToString ( int  precision = 2) const

Definition at line 128 of file Matrix.cpp.

ID_INLINE float idMat2::Trace ( void  ) const

Definition at line 271 of file Matrix.h.

ID_INLINE idMat2 idMat2::Transpose ( void  ) const

Definition at line 279 of file Matrix.h.

ID_INLINE idMat2 & idMat2::TransposeSelf ( void  )

Definition at line 284 of file Matrix.h.

ID_INLINE void idMat2::Zero ( void  )

Definition at line 246 of file Matrix.h.

Friends And Related Function Documentation

idMat2 operator* ( const float  a,
const idMat2 mat 
)
friend

Definition at line 213 of file Matrix.h.

idVec2 operator* ( const idVec2 vec,
const idMat2 mat 
)
friend

Definition at line 209 of file Matrix.h.

idVec2& operator*= ( idVec2 vec,
const idMat2 mat 
)
friend

Definition at line 217 of file Matrix.h.

Member Data Documentation

idVec2 idMat2::mat[2]
private

Definition at line 106 of file Matrix.h.


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