Mat3 Class Reference

#include <mat3.hh>


Public Member Functions

 Mat3 ()
 Mat3 (Real i00, Real i01, Real i02, Real i10, Real i11, Real i12, Real i20, Real i21, Real i22)
 Mat3 (const Mat3 &m)
 Mat3 (const Mat2 &m)
 Mat3 (const Real[9])
Mat3operator= (const Mat3 &m)
bool operator== (const Mat3 &rhs) const
Realoperator() (std::size_t r, std::size_t c)
const Realoperator() (std::size_t r, std::size_t c) const
Mat3operator+= (const Mat3 &rhs)
Mat3operator-= (const Mat3 &rhs)
Mat3operator*= (const Real d)
Mat3operator/= (const Real d)
Mat3operator*= (const Mat3 &m)
RealData ()
const RealData () const
geom::Vec3 GetCol (int index) const
geom::Vec3 GetRow (int index) const

Static Public Member Functions

static Mat3 Identity ()


Detailed Description

Definition at line 34 of file mat3.hh.


Constructor & Destructor Documentation

Mat3 (  ) 

Default initialization, identity matrix.

Mat3 ( Real  i00,
Real  i01,
Real  i02,
Real  i10,
Real  i11,
Real  i12,
Real  i20,
Real  i21,
Real  i22 
)

In with 9 values in row-major order.

row-major order means that the matrix

| a b c | | d e f | | g h i |

is initialized with (a,b,c, d,e,f, g,h,i)

Mat3 ( const Mat3 m  ) 

Copy ctor.

Mat3 ( const Mat2 m  )  [explicit]

Mat3 ( const   Real[9]  )  [explicit]

initialization from array


Member Function Documentation

const Real* Data (  )  const [inline]

Definition at line 88 of file mat3.hh.

Real* Data (  )  [inline]

Definition at line 87 of file mat3.hh.

geom::Vec3 GetCol ( int  index  )  const

geom::Vec3 GetRow ( int  index  )  const

static Mat3 Identity (  )  [static]

const Real& operator() ( std::size_t  r,
std::size_t  c 
) const

const element access

Real& operator() ( std::size_t  r,
std::size_t  c 
)

element access

Mat3& operator*= ( const Mat3 m  ) 

Mat3& operator*= ( const Real  d  ) 

Mat3& operator+= ( const Mat3 rhs  ) 

addable op

Mat3& operator-= ( const Mat3 rhs  ) 

subtractable op

Mat3& operator/= ( const Real  d  ) 

Mat3& operator= ( const Mat3 m  ) 

assignement op

bool operator== ( const Mat3 rhs  )  const

comparable


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

Generated on Fri Jul 2 14:23:06 2010 for OpenStructure by  doxygen 1.5.8