General Purpose Geodetic Library
Sg3dMatrixR Class Reference

#include <Sg3dMatrixR.h>

Inheritance diagram for Sg3dMatrixR:
Sg3dMatrix Sg3dMatrixR2dot Sg3dMatrixRdot

Public Member Functions

 Sg3dMatrixR (DIRECTION axis_, double=0.0)
 
 Sg3dMatrixR (const Sg3dMatrixR &)
 
 ~Sg3dMatrixR ()
 
double angle () const
 
DIRECTION axis () const
 
const Sg3dMatrixoperator() (double)
 
- Public Member Functions inherited from Sg3dMatrix
 Sg3dMatrix ()
 
 Sg3dMatrix (const Sg3dMatrix &)
 
 Sg3dMatrix (const Sg3dVector &col0, const Sg3dVector &col1, const Sg3dVector &col2)
 
 Sg3dMatrix (double a00, double a01, double a02, double a10, double a11, double a12, double a20, double a21, double a22)
 
 ~Sg3dMatrix ()
 
double & operator() (DIRECTION i, DIRECTION j)
 
double at (DIRECTION i, DIRECTION j) const
 
double module () const
 
void unify ()
 
Sg3dMatrix T () const
 
Sg3dMatrixoperator= (const Sg3dMatrix &)
 
Sg3dMatrixoperator+= (const Sg3dMatrix &)
 
Sg3dMatrixoperator-= (const Sg3dMatrix &)
 
Sg3dMatrixoperator*= (double)
 
Sg3dMatrixoperator/= (double)
 

Protected Attributes

double angle_
 An angle of rotation. More...
 
double sinA_
 
double cosA_
 
DIRECTION axis_
 An axis of rotation. More...
 
- Protected Attributes inherited from Sg3dMatrix
double mat [3][3]
 The 3x3 array that is storing elements of a matrix. More...
 

Detailed Description

A 3d matrix which is describing an elementary rotation around one of axises.

Definition at line 41 of file Sg3dMatrixR.h.

Constructor & Destructor Documentation

◆ Sg3dMatrixR() [1/2]

Sg3dMatrixR::Sg3dMatrixR ( DIRECTION  axis_,
double  angle = 0.0 
)

A constructor. Creates a default copy of the object, direction Axis_ is a mandatory argument.

Definition at line 33 of file Sg3dMatrixR.cpp.

References angle(), axis(), and axis_.

◆ Sg3dMatrixR() [2/2]

Sg3dMatrixR::Sg3dMatrixR ( const Sg3dMatrixR rm)

A constructor. Creates a copy of the object from given reference.

Definition at line 42 of file Sg3dMatrixR.cpp.

References angle_, axis_, cosA_, and sinA_.

◆ ~Sg3dMatrixR()

Sg3dMatrixR::~Sg3dMatrixR ( )
inline

A destructor. Destroys the object.

Definition at line 65 of file Sg3dMatrixR.h.

Member Function Documentation

◆ angle()

double Sg3dMatrixR::angle ( ) const
inline

Returns a value of the angle of rotation, rad.

Definition at line 72 of file Sg3dMatrixR.h.

References angle_.

Referenced by Sg3dMatrixR(), operator()(), Sg3dMatrixRdot::operator()(), and Sg3dMatrixR2dot::operator()().

◆ axis()

DIRECTION Sg3dMatrixR::axis ( ) const
inline

Returns an axis of rotation.

Definition at line 76 of file Sg3dMatrixR.h.

References axis_.

Referenced by Sg3dMatrixR().

◆ operator()()

const Sg3dMatrix & Sg3dMatrixR::operator() ( double  angle)

Returns a matrix, which is describing a rotation on the angle Angle around the axis Axis.

Definition at line 51 of file Sg3dMatrixR.cpp.

References angle(), angle_, axis_, cosA_, Sg3dMatrix::mat, sinA_, X_AXIS, Y_AXIS, and Z_AXIS.

Member Data Documentation

◆ angle_

double Sg3dMatrixR::angle_
protected

An angle of rotation.

Definition at line 44 of file Sg3dMatrixR.h.

Referenced by Sg3dMatrixR(), angle(), operator()(), Sg3dMatrixRdot::operator()(), and Sg3dMatrixR2dot::operator()().

◆ axis_

◆ cosA_

double Sg3dMatrixR::cosA_
protected

◆ sinA_

double Sg3dMatrixR::sinA_
protected

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