58 double yx_p ,
double yy_p ,
double yz_p ,
59 double zx_p ,
double zy_p ,
double zz_p ) :
60 xx(xx_p) ,
xy(xy_p) ,
xz(xz_p) ,
61 yx(yx_p) ,
yy(yy_p) ,
yz(yz_p) ,
62 zx(zx_p) ,
zy(zy_p) ,
zz(zz_p)
66 xx(M[0]) ,
xy(M[3]) ,
xz(M[6]) ,
67 yx(M[1]) ,
yy(M[4]) ,
yz(M[7]) ,
68 zx(M[2]) ,
zy(M[5]) ,
zz(M[8])
72 xx(M[0][0]) ,
xy(M[0][1]) ,
xz(M[0][2]) ,
73 yx(M[1][0]) ,
yy(M[1][1]) ,
yz(M[1][2]) ,
74 zx(M[2][0]) ,
zy(M[2][1]) ,
zz(M[2][2])
77 void GetFrom (
double xx_p ,
double xy_p ,
double xz_p ,
78 double yx_p ,
double yy_p ,
double yz_p ,
79 double zx_p ,
double zy_p ,
double zz_p )
81 xx = xx_p;
xy = xy_p;
xz = xz_p;
82 yx = yx_p;
yy = yy_p;
yz = yz_p;
83 zx = zx_p;
zy = zy_p;
zz = zz_p;
88 xx = A[0];
xy = A[1];
xz = A[2];
89 yx = A[3];
yy = A[4];
yz = A[5];
90 zx = A[6];
zy = A[7];
zz = A[8];
95 xx = A[0][0];
xy = A[0][1];
xz = A[0][2];
96 yx = A[1][0];
yy = A[1][1];
yz = A[1][2];
97 zx = A[2][0];
zy = A[2][1];
zz = A[2][2];
102 xx = 0.0;
xy = 0.0;
xz = 0.0;
103 yx = 0.0;
yy = 0.0;
yz = 0.0;
104 zx = 0.0;
zy = 0.0;
zz = 0.0;
109 xx = 1.0;
xy = 0.0;
xz = 0.0;
110 yx = 0.0;
yy = 1.0;
yz = 0.0;
111 zx = 0.0;
zy = 0.0;
zz = 1.0;
MATRIX_3x3 class and functions.
void GetFrom(double A[])
copies components values from the array (one dimensional)
MATRIX_3x3(double xx_p, double xy_p, double xz_p, double yx_p, double yy_p, double yz_p, double zx_p, double zy_p, double zz_p)
constructor - sets components values from variables
void GetFrom(double xx_p, double xy_p, double xz_p, double yx_p, double yy_p, double yz_p, double zx_p, double zy_p, double zz_p)
copies components values from variables
MATRIX_3x3(void)
default constructor - sets components to zero
void Unit(void)
set unit matrix
double Det(void)
matrix determinant
void GetFrom(double A[3][3])
copies components values from the array (two dimensional)
MATRIX_3x3(double M[3][3])
constructor - sets components values from the array (two dimensional)
MATRIX_3x3(double M[])
constructor - sets components values from the array (one dimensional)
void SetToZero(void)
reset matrix - set all components to zero
Vector 3D class - vector manipulation.
MATRIX_3x3 operator-(const MATRIX_3x3 &A, const MATRIX_3x3 &B)
Arithmetic operator - subtraction of 2 matrices (sum of A and -B)
MATRIX_3x3 operator*(const MATRIX_3x3 &A, const MATRIX_3x3 &B)
Arithmetic operator - multiplication of 2 matrices.
MATRIX_3x3 operator~(const MATRIX_3x3 &A)
Arithmetic operator - matrix inversion ( A^(-1) )
void v_sprintf(char *dest, char *name, const MATRIX_3x3 &mat)
print to string "dest" name and matrix components
void v_printf(char *name, const MATRIX_3x3 &mat)
print to stdout name and matrix components
std::ostream & operator<<(std::ostream &out, const MATRIX_3x3 &mat)
print to std:ostream
MATRIX_3x3 operator+(const MATRIX_3x3 &A, const MATRIX_3x3 &B)
Arithmetic operator - sum of 2 matrices.
void v_fprintf(FILE *dest, char *name, const MATRIX_3x3 &mat)
print to stream "dest" name and matrix components
MATRIX_3x3 operator/(const MATRIX_3x3 &A, const double &s)
Arithmetic operator - division of matrix by scalar (product of matrix and 1/s)
MATRIX_3x3 operator!(const MATRIX_3x3 &A)
Arithmetic operator - matrix transposition ( A^T )
MATRIX_3x3 operator&(const MATRIX_3x3 &A, const MATRIX_3x3 &B)
Arithmetic operator - multiplication of 2 matrices components ( AxxBxx, AxyBxy, .....
void operator/=(MATRIX_3x3 &A, const double &s)
Arithmetic operator - division assignment.
Vector 3D class and functions.