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
idMat6 Class Reference

#include <Matrix.h>

Public Member Functions

 idMat6 (void)
 
 idMat6 (const idVec6 &v0, const idVec6 &v1, const idVec6 &v2, const idVec6 &v3, const idVec6 &v4, const idVec6 &v5)
 
 idMat6 (const idMat3 &m0, const idMat3 &m1, const idMat3 &m2, const idMat3 &m3)
 
 idMat6 (const float src[6][6])
 
const idVec6operator[] (int index) const
 
idVec6operator[] (int index)
 
idMat6 operator* (const float a) const
 
idVec6 operator* (const idVec6 &vec) const
 
idMat6 operator* (const idMat6 &a) const
 
idMat6 operator+ (const idMat6 &a) const
 
idMat6 operator- (const idMat6 &a) const
 
idMat6operator*= (const float a)
 
idMat6operator*= (const idMat6 &a)
 
idMat6operator+= (const idMat6 &a)
 
idMat6operator-= (const idMat6 &a)
 
bool Compare (const idMat6 &a) const
 
bool Compare (const idMat6 &a, const float epsilon) const
 
bool operator== (const idMat6 &a) const
 
bool operator!= (const idMat6 &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
 
idMat3 SubMat3 (int n) const
 
float Trace (void) const
 
float Determinant (void) const
 
idMat6 Transpose (void) const
 
idMat6TransposeSelf (void)
 
idMat6 Inverse (void) const
 
bool InverseSelf (void)
 
idMat6 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

idVec6 mat [6]
 

Friends

idMat6 operator* (const float a, const idMat6 &mat)
 
idVec6 operator* (const idVec6 &vec, const idMat6 &mat)
 
idVec6operator*= (idVec6 &vec, const idMat6 &mat)
 

Detailed Description

Definition at line 1449 of file Matrix.h.

Constructor & Destructor Documentation

ID_INLINE idMat6::idMat6 ( void  )

Definition at line 1507 of file Matrix.h.

ID_INLINE idMat6::idMat6 ( const idVec6 v0,
const idVec6 v1,
const idVec6 v2,
const idVec6 v3,
const idVec6 v4,
const idVec6 v5 
)
explicit

Definition at line 1519 of file Matrix.h.

ID_INLINE idMat6::idMat6 ( const idMat3 m0,
const idMat3 m1,
const idMat3 m2,
const idMat3 m3 
)
explicit

Definition at line 1510 of file Matrix.h.

ID_INLINE idMat6::idMat6 ( const float  src[6][6])
explicit

Definition at line 1528 of file Matrix.h.

Member Function Documentation

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

Definition at line 1655 of file Matrix.h.

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

Definition at line 1669 of file Matrix.h.

float idMat6::Determinant ( void  ) const

Definition at line 1793 of file Matrix.cpp.

ID_INLINE int idMat6::GetDimension ( void  ) const

Definition at line 1757 of file Matrix.h.

ID_INLINE void idMat6::Identity ( void  )

Definition at line 1695 of file Matrix.h.

ID_INLINE idMat6 idMat6::Inverse ( void  ) const

Definition at line 1739 of file Matrix.h.

ID_INLINE idMat6 idMat6::InverseFast ( void  ) const

Definition at line 1748 of file Matrix.h.

bool idMat6::InverseFastSelf ( void  )

Definition at line 2186 of file Matrix.cpp.

bool idMat6::InverseSelf ( void  )

Definition at line 1869 of file Matrix.cpp.

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

Definition at line 1714 of file Matrix.h.

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

Definition at line 1699 of file Matrix.h.

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

Definition at line 1703 of file Matrix.h.

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

Definition at line 1687 of file Matrix.h.

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

Definition at line 1567 of file Matrix.h.

ID_INLINE idVec6 idMat6::operator* ( const idVec6 vec) const

Definition at line 1577 of file Matrix.h.

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

Definition at line 1542 of file Matrix.h.

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

Definition at line 1607 of file Matrix.h.

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

Definition at line 1617 of file Matrix.h.

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

Definition at line 1587 of file Matrix.h.

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

Definition at line 1622 of file Matrix.h.

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

Definition at line 1597 of file Matrix.h.

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

Definition at line 1632 of file Matrix.h.

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

Definition at line 1683 of file Matrix.h.

ID_INLINE const idVec6 & idMat6::operator[] ( int  index) const

Definition at line 1532 of file Matrix.h.

ID_INLINE idVec6 & idMat6::operator[] ( int  index)

Definition at line 1537 of file Matrix.h.

ID_INLINE idMat3 idMat6::SubMat3 ( int  n) const

Definition at line 1725 of file Matrix.h.

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

Definition at line 1761 of file Matrix.h.

ID_INLINE float * idMat6::ToFloatPtr ( void  )

Definition at line 1765 of file Matrix.h.

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

Definition at line 2927 of file Matrix.cpp.

ID_INLINE float idMat6::Trace ( void  ) const

Definition at line 1735 of file Matrix.h.

idMat6 idMat6::Transpose ( void  ) const

Definition at line 1757 of file Matrix.cpp.

idMat6 & idMat6::TransposeSelf ( void  )

Definition at line 1774 of file Matrix.cpp.

ID_INLINE void idMat6::Zero ( void  )

Definition at line 1691 of file Matrix.h.

Friends And Related Function Documentation

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

Definition at line 1646 of file Matrix.h.

idVec6 operator* ( const idVec6 vec,
const idMat6 mat 
)
friend

Definition at line 1642 of file Matrix.h.

idVec6& operator*= ( idVec6 vec,
const idMat6 mat 
)
friend

Definition at line 1650 of file Matrix.h.

Member Data Documentation

idVec6 idMat6::mat[6]
private

Definition at line 1500 of file Matrix.h.


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