Sirikata
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
Sirikata::Matrix3x3< scalar > Class Template Reference

#include <Matrix3x3.hpp>

Collaboration diagram for Sirikata::Matrix3x3< scalar >:

List of all members.

Public Types

typedef Vector3< scalar > Vector3x
typedef scalar real

Public Member Functions

 Matrix3x3 ()
 Matrix3x3 (const Vector3x &col1, const Vector3x &col2, const Vector3x &col3, COLUMNS c)
 Matrix3x3 (const Vector3x &row1, const Vector3x &row2, const Vector3x &row3, ROWS r)
const Vector3xgetCol (unsigned int which) const
void setCol (unsigned int which, const Vector3x &col)
Vector3x getRow (unsigned int which) const
void setRow (unsigned int which, const Vector3x &row)
scalar & operator() (unsigned int row, unsigned int column)
scalar operator() (unsigned int row, unsigned int column) const
template<typename T >
Vector3< T > operator* (const Vector3< T > &other) const
Matrix3x3 operator* (scalar other) const
Matrix3x3 operator/ (scalar other) const
bool operator== (const Matrix3x3 &other) const
bool operator!= (const Matrix3x3 &other) const
Matrix3x3 operator+ (const Matrix3x3 &other) const
Matrix3x3 operator- (const Matrix3x3 &other) const
Matrix3x3 operator- () const
Matrix3x3operator+= (const Matrix3x3 &other)
Matrix3x3operator-= (const Matrix3x3 &other)
Matrix3x3 operator* (const Matrix3x3 &other) const
Matrix3x3operator*= (const Matrix3x3 &other)
Matrix3x3operator*= (scalar other)
Matrix3x3operator/= (scalar other)
Matrix3x3 transpose () const
Matrix3x3 inverse () const
Matrix3x3 inverseTranspose () const
double determinant () const
std::string toString () const

Static Public Member Functions

static const Matrix3x3zero ()
static const Matrix3x3identity ()

Private Attributes

Vector3x mCol [3]

template<typename scalar>
class Sirikata::Matrix3x3< scalar >


Member Typedef Documentation

template<typename scalar>
typedef scalar Sirikata::Matrix3x3< scalar >::real
template<typename scalar>
typedef Vector3<scalar> Sirikata::Matrix3x3< scalar >::Vector3x

Constructor & Destructor Documentation

template<typename scalar>
Sirikata::Matrix3x3< scalar >::Matrix3x3 ( ) [inline]
template<typename scalar>
Sirikata::Matrix3x3< scalar >::Matrix3x3 ( const Vector3x col1,
const Vector3x col2,
const Vector3x col3,
COLUMNS  c 
) [inline]
template<typename scalar>
Sirikata::Matrix3x3< scalar >::Matrix3x3 ( const Vector3x row1,
const Vector3x row2,
const Vector3x row3,
ROWS  r 
) [inline]

Member Function Documentation

template<typename scalar>
double Sirikata::Matrix3x3< scalar >::determinant ( ) const [inline]
Todo:
FIXME: should this be a double or a scalar

References Sirikata::Matrix3x3< scalar >::mCol.

template<typename scalar>
const Vector3x& Sirikata::Matrix3x3< scalar >::getCol ( unsigned int  which) const [inline]
template<typename scalar>
Vector3x Sirikata::Matrix3x3< scalar >::getRow ( unsigned int  which) const [inline]
template<typename scalar>
static const Matrix3x3& Sirikata::Matrix3x3< scalar >::identity ( ) [inline, static]
template<typename scalar>
Matrix3x3 Sirikata::Matrix3x3< scalar >::inverse ( ) const [inline]
template<typename scalar>
Matrix3x3 Sirikata::Matrix3x3< scalar >::inverseTranspose ( ) const [inline]
template<typename scalar>
bool Sirikata::Matrix3x3< scalar >::operator!= ( const Matrix3x3< scalar > &  other) const [inline]
template<typename scalar>
scalar Sirikata::Matrix3x3< scalar >::operator() ( unsigned int  row,
unsigned int  column 
) const [inline]
template<typename scalar>
scalar& Sirikata::Matrix3x3< scalar >::operator() ( unsigned int  row,
unsigned int  column 
) [inline]
template<typename scalar>
template<typename T >
Vector3<T> Sirikata::Matrix3x3< scalar >::operator* ( const Vector3< T > &  other) const [inline]
template<typename scalar>
Matrix3x3 Sirikata::Matrix3x3< scalar >::operator* ( const Matrix3x3< scalar > &  other) const [inline]
template<typename scalar>
Matrix3x3 Sirikata::Matrix3x3< scalar >::operator* ( scalar  other) const [inline]
template<typename scalar>
Matrix3x3& Sirikata::Matrix3x3< scalar >::operator*= ( scalar  other) [inline]
template<typename scalar>
Matrix3x3& Sirikata::Matrix3x3< scalar >::operator*= ( const Matrix3x3< scalar > &  other) [inline]
template<typename scalar>
Matrix3x3 Sirikata::Matrix3x3< scalar >::operator+ ( const Matrix3x3< scalar > &  other) const [inline]
template<typename scalar>
Matrix3x3& Sirikata::Matrix3x3< scalar >::operator+= ( const Matrix3x3< scalar > &  other) [inline]
template<typename scalar>
Matrix3x3 Sirikata::Matrix3x3< scalar >::operator- ( ) const [inline]
template<typename scalar>
Matrix3x3 Sirikata::Matrix3x3< scalar >::operator- ( const Matrix3x3< scalar > &  other) const [inline]
template<typename scalar>
Matrix3x3& Sirikata::Matrix3x3< scalar >::operator-= ( const Matrix3x3< scalar > &  other) [inline]
template<typename scalar>
Matrix3x3 Sirikata::Matrix3x3< scalar >::operator/ ( scalar  other) const [inline]
template<typename scalar>
Matrix3x3& Sirikata::Matrix3x3< scalar >::operator/= ( scalar  other) [inline]
template<typename scalar>
bool Sirikata::Matrix3x3< scalar >::operator== ( const Matrix3x3< scalar > &  other) const [inline]
template<typename scalar>
void Sirikata::Matrix3x3< scalar >::setCol ( unsigned int  which,
const Vector3x col 
) [inline]
template<typename scalar>
void Sirikata::Matrix3x3< scalar >::setRow ( unsigned int  which,
const Vector3x row 
) [inline]
template<typename scalar>
std::string Sirikata::Matrix3x3< scalar >::toString ( ) const [inline]
template<typename scalar>
Matrix3x3 Sirikata::Matrix3x3< scalar >::transpose ( ) const [inline]
template<typename scalar>
static const Matrix3x3& Sirikata::Matrix3x3< scalar >::zero ( ) [inline, static]

Member Data Documentation

template<typename scalar>
Vector3x Sirikata::Matrix3x3< scalar >::mCol[3] [private]

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