32 #ifndef PLANCK_ROTMATRIX_H 33 #define PLANCK_ROTMATRIX_H 51 double a10,
double a11,
double a12,
52 double a20,
double a21,
double a22)
54 entry[0][0]=a00; entry[0][1]=a01; entry[0][2]=a02;
55 entry[1][0]=a10; entry[1][1]=a11; entry[1][2]=a12;
56 entry[2][0]=a20; entry[2][1]=a21; entry[2][2]=a22;
98 (
double &alpha,
double &beta,
double &gamma)
const;
104 (vec.
x*entry[0][0] + vec.
y*entry[0][1] + vec.
z*entry[0][2],
105 vec.
x*entry[1][0] + vec.
y*entry[1][1] + vec.
z*entry[1][2],
106 vec.
x*entry[2][0] + vec.
y*entry[2][1] + vec.
z*entry[2][2]);
111 vec2.
x = vec.
x*entry[0][0] + vec.
y*entry[0][1] + vec.
z*entry[0][2];
112 vec2.
y = vec.
x*entry[1][0] + vec.
y*entry[1][1] + vec.
z*entry[1][2];
113 vec2.
z = vec.
x*entry[2][0] + vec.
y*entry[2][1] + vec.
z*entry[2][2];
void Transform(const vec3 &vec, vec3 &vec2) const
std::ostream & operator<<(std::ostream &os, const pointing &p)
void TransposeTimes(const rotmatrix &a, const rotmatrix &b, rotmatrix &res)
void Extract_CPAC_Euler_Angles(double &alpha, double &beta, double &gamma) const
rotmatrix operator*(const rotmatrix &a, const rotmatrix &b)
void matmult(const rotmatrix &a, const rotmatrix &b, rotmatrix &res)
void Make_CPAC_Euler_Matrix(double alpha, double beta, double gamma)
rotmatrix(double a00, double a01, double a02, double a10, double a11, double a12, double a20, double a21, double a22)
void toAxisAngle(vec3 &axis, double &angle) const
void Make_Axis_Rotation_Transform(const vec3 &axis, double angle)
vec3 Transform(const vec3 &vec) const