matrix< T, 2, 2 > Class Template Reference

#include <matrix2.h>

Collaboration diagram for matrix< T, 2, 2 >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef T value_type

Public Member Functions

 matrix ()
 matrix (T a0, T a1, T a2, T a3)
 matrix (const T *m)
 matrix (const matrix< T, 2, 2 > &m)
matrix< T, 2, 2 > operator+= (const matrix< T, 2, 2 > &m)
matrix< T, 2, 2 > operator-= (const matrix< T, 2, 2 > &m)
matrix< T, 2, 2 > operator *= (const T &num)
matrix< T, 2, 2 > operator/= (const T &num)
const bool operator== (const matrix< T, 2, 2 > &m) const
const bool operator!= (const matrix< T, 2, 2 > &m) const
const matrix< T, 2, 2 > operator- () const
const matrix< T, 2, 2 > operator * (const T &num) const
const matrix< T, 2, 2 > operator/ (const T &num) const
void row (unsigned int pRow, const vectorn< T, 2 > &pV)
void column (unsigned int pColumn, const vectorn< T, 2 > &pV)
const vectorn< T, 2 > row (int idx)
const vectorn< T, 2 > column (int idx)
 operator T * ()
 operator const T * () const

Public Attributes

xx
xy
yx
yy

Friends

std::ostream & operator<< (std::ostream &out, const matrix< T, 2, 2 > &m)
matrix< T, 2, 2 > operator+ (const matrix< T, 2, 2 > &m1, const matrix< T, 2, 2 > &m2)
matrix< T, 2, 2 > operator- (const matrix< T, 2, 2 > &m1, const matrix< T, 2, 2 > &m2)
const matrix< T, 2, 2 > operator * (const T &s, const matrix< T, 2, 2 > &m)
matrix< T, 2, 2 > operator * (const matrix< T, 2, 2 > &m1, const matrix< T, 2, 2 > &m2)
const vectorn< T, 2 > operator * (const matrix< T, 2, 2 > &m, const vectorn< T, 2 > &v)

Detailed Description

template<typename T>
class matrix< T, 2, 2 >

Author:
Cengiz Terzibas


Member Typedef Documentation

template<typename T>
typedef T matrix< T, 2, 2 >::value_type


Constructor & Destructor Documentation

template<typename T>
matrix< T, 2, 2 >::matrix (  )  [inline]

template<typename T>
matrix< T, 2, 2 >::matrix ( a0,
a1,
a2,
a3 
) [inline]

template<typename T>
matrix< T, 2, 2 >::matrix ( const T *  m  )  [inline]

template<typename T>
matrix< T, 2, 2 >::matrix ( const matrix< T, 2, 2 > &  m  )  [inline]


Member Function Documentation

template<typename T>
matrix<T,2,2> matrix< T, 2, 2 >::operator+= ( const matrix< T, 2, 2 > &  m  )  [inline]

template<typename T>
matrix<T,2,2> matrix< T, 2, 2 >::operator-= ( const matrix< T, 2, 2 > &  m  )  [inline]

template<typename T>
matrix<T,2,2> matrix< T, 2, 2 >::operator *= ( const T &  num  )  [inline]

template<typename T>
matrix<T,2,2> matrix< T, 2, 2 >::operator/= ( const T &  num  )  [inline]

template<typename T>
const bool matrix< T, 2, 2 >::operator== ( const matrix< T, 2, 2 > &  m  )  const [inline]

template<typename T>
const bool matrix< T, 2, 2 >::operator!= ( const matrix< T, 2, 2 > &  m  )  const [inline]

template<typename T>
const matrix<T,2,2> matrix< T, 2, 2 >::operator- (  )  const [inline]

template<typename T>
const matrix<T,2,2> matrix< T, 2, 2 >::operator * ( const T &  num  )  const [inline]

template<typename T>
const matrix<T,2,2> matrix< T, 2, 2 >::operator/ ( const T &  num  )  const [inline]

template<typename T>
void matrix< T, 2, 2 >::row ( unsigned int  pRow,
const vectorn< T, 2 > &  pV 
) [inline]

template<typename T>
void matrix< T, 2, 2 >::column ( unsigned int  pColumn,
const vectorn< T, 2 > &  pV 
) [inline]

template<typename T>
const vectorn<T,2> matrix< T, 2, 2 >::row ( int  idx  )  [inline]

template<typename T>
const vectorn<T,2> matrix< T, 2, 2 >::column ( int  idx  )  [inline]

template<typename T>
matrix< T, 2, 2 >::operator T * (  )  [inline]

template<typename T>
matrix< T, 2, 2 >::operator const T * (  )  const [inline]


Friends And Related Function Documentation

template<typename T>
std::ostream& operator<< ( std::ostream &  out,
const matrix< T, 2, 2 > &  m 
) [friend]

template<typename T>
matrix<T,2,2> operator+ ( const matrix< T, 2, 2 > &  m1,
const matrix< T, 2, 2 > &  m2 
) [friend]

template<typename T>
matrix<T,2,2> operator- ( const matrix< T, 2, 2 > &  m1,
const matrix< T, 2, 2 > &  m2 
) [friend]

template<typename T>
const matrix<T,2,2> operator * ( const T &  s,
const matrix< T, 2, 2 > &  m 
) [friend]

template<typename T>
matrix<T,2,2> operator * ( const matrix< T, 2, 2 > &  m1,
const matrix< T, 2, 2 > &  m2 
) [friend]

template<typename T>
const vectorn<T,2> operator * ( const matrix< T, 2, 2 > &  m,
const vectorn< T, 2 > &  v 
) [friend]


Member Data Documentation

template<typename T>
T matrix< T, 2, 2 >::xx

template<typename T>
T matrix< T, 2, 2 >::xy

template<typename T>
T matrix< T, 2, 2 >::yx

template<typename T>
T matrix< T, 2, 2 >::yy


The documentation for this class was generated from the following file:
Generated on Mon Sep 10 17:42:12 2007 for TinyMath by  doxygen 1.5.2