iso::math::Matrix3< Type > Class Template Reference

3x3 matrix class More...

#include <iso_math_matrix3.h>

Inherits iso::math::Matrix< Type >< Type >.

Inheritance diagram for iso::math::Matrix3< Type >:

Inheritance graph
[legend]
Collaboration diagram for iso::math::Matrix3< Type >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Matrix3 ()
 create zero matrix
 Matrix3 (Type pValue)
 create matrix containing identical values
 Matrix3 (Type *pValues)
 create matrix
template<class Type2>
 Matrix3 (Type2 *pValues)
 create matrix
 Matrix3 (Type p00, Type p01, Type p02, Type p10, Type p11, Type p12, Type p20, Type p21, Type p22)
 create matrix
 Matrix3 (const Vector3< Type > &pV0, const Vector3< Type > &pV1, const Vector3< Type > &pV2, bool pColumnMode=false)
 create matrix
template<class Type2>
 Matrix3 (const Vector3< Type2 > &pV0, const Vector3< Type2 > &pV1, const Vector3< Type2 > &pV2, bool pColumnMode=false)
 create matrix
 Matrix3 (const Matrix3< Type > &pMatrix)
 copy constructor
template<class Type2>
 Matrix3 (const Matrix3< Type2 > &pMatrix)
 copy constructor
 Matrix3 (const Matrix< Type > &pMatrix) throw (MathException)
 copy constructor
template<class Type2>
 Matrix3 (const Matrix< Type2 > &pMatrix) throw (MathException)
 copy constructor
virtual ~Matrix3 ()
 destructor
void set (Type p00, Type p01, Type p02, Type p10, Type p11, Type p12, Type p20, Type p21, Type p22)
 set matrix values
void set (const Vector3< Type > &pV0, const Vector3< Type > &pV1, const Vector3< Type > &pV2, bool pColumnMode=false)
 set matrix values
template<class Type2>
void set (const Vector3< Type2 > &pV0, const Vector3< Type2 > &pV1, const Vector3< Type2 > &pV2, bool pColumnMode=false)
 set matrix values

Static Public Attributes

static const Matrix3< Type > ZERO
 zero matrix
static const Matrix3< Type > IDENTITY
 identity matrix

Friends

std::ostream & operator<< (std::ostream &pOstream, const Matrix3< Type > &pMatrix)
 print matrix information

Detailed Description

template<class Type>
class iso::math::Matrix3< Type >

3x3 matrix class

class

Created by Daniel Bisig on 7/16/06. Copyright 2006 Daniel Bisig All rights reserved.


Constructor & Destructor Documentation

template<class Type>
iso::math::Matrix3< Type >::Matrix3 (  ) 

create zero matrix

template<class Type>
iso::math::Matrix3< Type >::Matrix3 ( Type  pValue  ) 

create matrix containing identical values

Parameters:
pValue value

template<class Type>
iso::math::Matrix3< Type >::Matrix3 ( Type *  pValues  ) 

create matrix

Parameters:
pValues values (must be of correct size!)

template<class Type>
template<class Type2>
iso::math::Matrix3< Type >::Matrix3 ( Type2 *  pValues  ) 

create matrix

Parameters:
pValues values (must be of correct size!)

template<class Type>
iso::math::Matrix3< Type >::Matrix3 ( Type  p00,
Type  p01,
Type  p02,
Type  p10,
Type  p11,
Type  p12,
Type  p20,
Type  p21,
Type  p22 
)

create matrix

Parameters:
p00 value
p01 value
p02 value
p10 value
p11 value
p12 value
p20 value
p21 value
p22 value

template<class Type>
iso::math::Matrix3< Type >::Matrix3 ( const Vector3< Type > &  pV0,
const Vector3< Type > &  pV1,
const Vector3< Type > &  pV2,
bool  pColumnMode = false 
)

create matrix

Parameters:
pV0 vector
pV1 vector
pV2 vector
pColumnMode true: vectors represent matrix columns false: vectors represent matrix rows

template<class Type>
template<class Type2>
iso::math::Matrix3< Type >::Matrix3 ( const Vector3< Type2 > &  pV0,
const Vector3< Type2 > &  pV1,
const Vector3< Type2 > &  pV2,
bool  pColumnMode = false 
)

create matrix

Parameters:
pV0 vector
pV1 vector
pV2 vector
pColumnMode true: vectors represent matrix columns false: vectors represent matrix rows

template<class Type>
iso::math::Matrix3< Type >::Matrix3 ( const Matrix3< Type > &  pMatrix  ) 

copy constructor

Parameters:
pMatrix matrix

template<class Type>
template<class Type2>
iso::math::Matrix3< Type >::Matrix3 ( const Matrix3< Type2 > &  pMatrix  ) 

copy constructor

Parameters:
pMatrix matrix

template<class Type>
iso::math::Matrix3< Type >::Matrix3 ( const Matrix< Type > &  pMatrix  )  throw (MathException)

copy constructor

Parameters:
pMatrix matrix
Exceptions:
MathException not 3x3 matrix

template<class Type>
template<class Type2>
iso::math::Matrix3< Type >::Matrix3 ( const Matrix< Type2 > &  pMatrix  )  throw (MathException)

copy constructor

Parameters:
pMatrix matrix
Exceptions:
MathException not 3x3 matrix

template<class Type>
iso::math::Matrix3< Type >::~Matrix3 (  )  [virtual]

destructor


Member Function Documentation

template<class Type>
void iso::math::Matrix3< Type >::set ( Type  p00,
Type  p01,
Type  p02,
Type  p10,
Type  p11,
Type  p12,
Type  p20,
Type  p21,
Type  p22 
)

set matrix values

Parameters:
p00 value
p01 value
p02 value
p10 value
p11 value
p12 value
p20 value
p21 value
p22 value

template<class Type>
void iso::math::Matrix3< Type >::set ( const Vector3< Type > &  pV0,
const Vector3< Type > &  pV1,
const Vector3< Type > &  pV2,
bool  pColumnMode = false 
)

set matrix values

Parameters:
pV0 vector
pV1 vector
pV2 vector
pColumnMode true: vectors represent matrix columns false: vectors represent matrix rows

template<class Type>
template<class Type2>
void iso::math::Matrix3< Type >::set ( const Vector3< Type2 > &  pV0,
const Vector3< Type2 > &  pV1,
const Vector3< Type2 > &  pV2,
bool  pColumnMode = false 
)

set matrix values

Parameters:
pV0 vector
pV1 vector
pV2 vector
pColumnMode true: vectors represent matrix columns false: vectors represent matrix rows


Friends And Related Function Documentation

template<class Type>
std::ostream& operator<< ( std::ostream &  pOstream,
const Matrix3< Type > &  pMatrix 
) [friend]

print matrix information

Parameters:
pOstream output stream
pMatrix matrix
Returns:
output stream


Member Data Documentation

template<class Type>
const Matrix3< Type > iso::math::Matrix3< Type >::ZERO [static]

zero matrix

template<class Type>
const Matrix3< Type > iso::math::Matrix3< Type >::IDENTITY [static]

identity matrix


The documentation for this class was generated from the following file:
Generated on Fri Feb 25 14:04:07 2011 for iso_math by  doxygen 1.5.1