#include <gcu/matrix.h>
Public Member Functions | |
Matrix () | |
virtual | ~Matrix () |
Matrix (double Psi, double Theta, double Phi, MatrixType Type) | |
Matrix (double x11, double x12, double x13, double x21, double x22, double x23, double x31, double x32, double x33) | |
Matrix & | operator * (Matrix &cMat) |
Matrix & | operator= (Matrix &cMat) |
void | Euler (double &Psi, double &Theta, double &Phi) |
void | Transform (double &dx, double &dy, double &dz) |
Definition at line 46 of file matrix.h.
gcu::Matrix::Matrix | ( | ) |
Default constructor. Members are not initialized. This constructor is rarely used.
virtual gcu::Matrix::~Matrix | ( | ) | [virtual] |
The destructor of Matrix.
gcu::Matrix::Matrix | ( | double | Psi, | |
double | Theta, | |||
double | Phi, | |||
MatrixType | Type | |||
) |
Psi,: | precession angle. | |
Theta,: | nutaton angle. | |
Phi,: | rotation angle. | |
Type,: | the type of the Matrix. |
gdouble z = sqrt(x*x + y*y); Matrix Mat(0, (y > 0)? - acos(x/z) :acos(x/z), z * M_PI / 90., rotation); m_Euler = Mat * m_Euler;
gcu::Matrix::Matrix | ( | double | x11, | |
double | x12, | |||
double | x13, | |||
double | x21, | |||
double | x22, | |||
double | x23, | |||
double | x31, | |||
double | x32, | |||
double | x33 | |||
) |
x11,: | value to use at first line and first column of the matrix. | |
x12,: | value to use at first line and second column of the matrix. | |
x13,: | value to use at first line and third column of the matrix. | |
x21,: | value to use at second line and first column of the matrix. | |
x22,: | value to use at second line and second column of the matrix. | |
x23,: | value to use at second line and third column of the matrix. | |
x31,: | value to use at third line and first column of the matrix. | |
x32,: | value to use at third line and second column of the matrix. | |
x33,: | value to use at third line and third column of the matrix. |
void gcu::Matrix::Euler | ( | double & | Psi, | |
double & | Theta, | |||
double & | Phi | |||
) |
Psi,: | precession angle. | |
Theta,: | nutaton angle. | |
Phi,: | rotation angle. |
cMat,: | a Matrix instance to use in the multiplication. |
void gcu::Matrix::Transform | ( | double & | dx, | |
double & | dy, | |||
double & | dz | |||
) |
dx,: | the x coordinate. | |
dy,: | the y coordinate. | |
dz,: | the z coordinate. |