1.3.2
CCC
 
Rotation Class Reference

TODO : public ASpaceObject. More...

#include <Rotation.hpp>

Inheritance diagram for Rotation:
AStringable

Detailed Description

TODO : public ASpaceObject.

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)
 

Constructor & Destructor Documentation

◆ Rotation() [1/2]

Rotation::Rotation ( unsigned int  ndim = 2)

◆ Rotation() [2/2]

Rotation::Rotation ( const Rotation r)

◆ ~Rotation()

Rotation::~Rotation ( )
virtual

Member Function Documentation

◆ getAngle()

double Rotation::getAngle ( int  idim) const
inline

◆ getAngles()

const VectorDouble& Rotation::getAngles ( ) const
inline

◆ getMatrixDirect() [1/2]

const MatrixSquareGeneral& Rotation::getMatrixDirect ( ) const
inline

◆ getMatrixDirect() [2/2]

double Rotation::getMatrixDirect ( int  idim,
int  jdim 
) const
inline

◆ getMatrixDirectVec()

VectorDouble Rotation::getMatrixDirectVec ( ) const
inline

◆ getMatrixInverse() [1/2]

const MatrixSquareGeneral& Rotation::getMatrixInverse ( ) const
inline

◆ getMatrixInverse() [2/2]

double Rotation::getMatrixInverse ( int  idim,
int  jdim 
) const
inline

◆ getMatrixInverseVec()

VectorDouble Rotation::getMatrixInverseVec ( ) const
inline

◆ getNDim()

unsigned int Rotation::getNDim ( ) const
inline

◆ isIdentity()

bool Rotation::isIdentity ( ) const
inline

◆ isMatrixRotation()

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

◆ isRotated()

bool Rotation::isRotated ( ) const
inline

◆ isSame()

bool Rotation::isSame ( const Rotation rot) const

◆ operator=()

Rotation & Rotation::operator= ( const Rotation r)

◆ resetFromSpaceDimension()

void Rotation::resetFromSpaceDimension ( unsigned int  ndim)

◆ rotateDirect()

void Rotation::rotateDirect ( const VectorDouble inv,
VectorDouble outv 
) const

◆ rotateInverse()

void Rotation::rotateInverse ( const VectorDouble inv,
VectorDouble outv 
) const

◆ setAngles()

int Rotation::setAngles ( const VectorDouble angles)

◆ setIdentity()

void Rotation::setIdentity ( )

◆ setMatrixDirect()

int Rotation::setMatrixDirect ( const MatrixSquareGeneral rotmat)

◆ setMatrixDirectVec()

int Rotation::setMatrixDirectVec ( const VectorDouble rotmat)

◆ toString()

String Rotation::toString ( const AStringFormat strfmt = nullptr) const
overridevirtual

Reimplemented from AStringable.


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