RotMatrix Class Reference
[MR Parameters (odinpara library)]

Rotation Matrix. More...

#include <geometry.h>

Inheritance diagram for RotMatrix:

Inheritance graph
[legend]
Collaboration diagram for RotMatrix:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RotMatrix (const STD_string &object_label="unnamedRotMatrix")
 RotMatrix (const RotMatrix &sct)
dvectoroperator[] (unsigned int index)
const dvectoroperator[] (unsigned int index) const
RotMatrixoperator= (const RotMatrix &sct)
bool operator== (const RotMatrix &srm) const
dvector operator * (const dvector &vec) const
RotMatrix operator * (const RotMatrix &matrix) const
 operator farray () const
RotMatrixset_inplane_rotation (float phi)
STD_string print () const

Friends

class RotMatrixVector

Detailed Description

Rotation Matrix.

This class represents 3 by 3 rotation matrix

Definition at line 62 of file geometry.h.


Constructor & Destructor Documentation

RotMatrix::RotMatrix ( const STD_string &  object_label = "unnamedRotMatrix"  ) 

default constructor for a 3 by 3 rotation matrix

RotMatrix::RotMatrix ( const RotMatrix sct  ) 

constructs a rotation matrix from an existing rotation matrix


Member Function Documentation

dvector& RotMatrix::operator[] ( unsigned int  index  )  [inline]

returns a row of rotation matrix

Definition at line 78 of file geometry.h.

const dvector& RotMatrix::operator[] ( unsigned int  index  )  const [inline]

returns a row of rotation matrix

Definition at line 83 of file geometry.h.

RotMatrix& RotMatrix::operator= ( const RotMatrix sct  ) 

assignment operator

bool RotMatrix::operator== ( const RotMatrix srm  )  const

returns true if srm is element-wise equal to this. Two elements are considered equal if their difference does not exceed GEO_CHECK_LIMIT.

dvector RotMatrix::operator * ( const dvector vec  )  const

returns the product this * vec

RotMatrix RotMatrix::operator * ( const RotMatrix matrix  )  const

returns the product this * matrix

RotMatrix::operator farray (  )  const

Returns the matrix as a 2-dim farray

RotMatrix& RotMatrix::set_inplane_rotation ( float  phi  ) 

Create in-plane rotation matrix with angle 'phi' (in rad).

STD_string RotMatrix::print (  )  const

returns a string describing the rotation matrix


The documentation for this class was generated from the following file:
Generated on Sat Jun 14 12:32:09 2008 by  doxygen 1.5.1