1.2.2
CCC
 
Rotation Class Reference

TODO : public ASpaceObject. More...

#include <Rotation.hpp>

Inheritance diagram for Rotation:
AStringable

Public Member Functions

 Rotation (unsigned int ndim=2)
 
 Rotation (const Rotation &r)
 
Rotationoperator= (const Rotation &r)
 
virtual ~Rotation ()
 
unsigned int getNDim () const
 
bool isRotated () const
 
const MatrixSquareGeneralgetMatrixDirect () const
 
const MatrixSquareGeneralgetMatrixInverse () const
 
const VectorDoublegetAngles () const
 
double getAngle (int idim) const
 
void resetFromSpaceDimension (unsigned int ndim)
 
virtual String toString (const AStringFormat *strfmt=nullptr) const override
 
int setMatrixDirect (const MatrixSquareGeneral &rotmat)
 
int setMatrixDirectVec (const VectorDouble &rotmat)
 
int setAngles (const VectorDouble &angles)
 
void setIdentity ()
 
void rotateDirect (const VectorDouble &inv, VectorDouble &outv) const
 
void rotateInverse (const VectorDouble &inv, VectorDouble &outv) const
 
bool isIdentity () const
 
bool isSame (const Rotation &rot) const
 
VectorDouble getMatrixDirectVec () const
 
VectorDouble getMatrixInverseVec () const
 
double getMatrixDirect (int idim, int jdim) const
 
double getMatrixInverse (int idim, int jdim) const
 
- Public Member Functions inherited from AStringable
 AStringable ()
 
 AStringable (const AStringable &r)
 
AStringableoperator= (const AStringable &r)
 
virtual ~AStringable ()
 
virtual void display (const AStringFormat *strfmt=nullptr) const final
 
virtual void display (int level) const final
 

Static Public Member Functions

static bool isMatrixRotation (const MatrixSquareGeneral &rotmat, bool verbose)
 

Detailed Description

TODO : public ASpaceObject.

Constructor & Destructor Documentation

Rotation::Rotation ( unsigned int  ndim = 2)
Rotation::Rotation ( const Rotation r)
Rotation::~Rotation ( )
virtual

Member Function Documentation

double Rotation::getAngle ( int  idim) const
inline
const VectorDouble& Rotation::getAngles ( ) const
inline
const MatrixSquareGeneral& Rotation::getMatrixDirect ( ) const
inline
double Rotation::getMatrixDirect ( int  idim,
int  jdim 
) const
inline
VectorDouble Rotation::getMatrixDirectVec ( ) const
inline
const MatrixSquareGeneral& Rotation::getMatrixInverse ( ) const
inline
double Rotation::getMatrixInverse ( int  idim,
int  jdim 
) const
inline
VectorDouble Rotation::getMatrixInverseVec ( ) const
inline
unsigned int Rotation::getNDim ( ) const
inline
bool Rotation::isIdentity ( ) const
inline
bool Rotation::isMatrixRotation ( const MatrixSquareGeneral rotmat,
bool  verbose 
)
static

Check if a matrix is a rotation matrix

Returns
true if the matrix is a rotation matrix; false otherwise
Parameters
[in]rotmatSquare matrix to be checked
[in]verbose1 for the verbose option
Remarks
A rotation matrix must be orthogonal with determinant equal to 1
bool Rotation::isRotated ( ) const
inline
bool Rotation::isSame ( const Rotation rot) const
Rotation & Rotation::operator= ( const Rotation r)
void Rotation::resetFromSpaceDimension ( unsigned int  ndim)
void Rotation::rotateDirect ( const VectorDouble inv,
VectorDouble outv 
) const
void Rotation::rotateInverse ( const VectorDouble inv,
VectorDouble outv 
) const
int Rotation::setAngles ( const VectorDouble angles)
void Rotation::setIdentity ( )
int Rotation::setMatrixDirect ( const MatrixSquareGeneral rotmat)
int Rotation::setMatrixDirectVec ( const VectorDouble rotmat)
String Rotation::toString ( const AStringFormat strfmt = nullptr) const
overridevirtual

Reimplemented from AStringable.


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