78#include <TRotMatrix.h>
92 const double deg2rad = 0.01745329252;
94 Double_t c0 = TMath::Cos(
a *
deg2rad);
96 Double_t c1 = TMath::Cos(
b *
deg2rad);
97 Double_t s2 = TMath::Sin(
c *
deg2rad);
98 Double_t c2 = TMath::Cos(
c *
deg2rad);
99 rot[0] = c0 * c1 * c2 -
s0 * s2;
100 rot[1] = -c0 * c1 * s2 -
s0 * c2;
102 rot[3] =
s0 * c1 * c2 + c0 * s2;
103 rot[4] = c0 * c2 -
s0 * c1 * s2;
114 for (Int_t
i = 0;
i < 9;
i++) {
115 Double_t d =
rot[
i] -
r(
i);
130 for (Int_t
i = 0;
i < 3;
i++) {
131 for (Int_t
j = 0;
j < 3;
j++) {
135 t =
new TRotMatrix(
name, title,
a);
ClassImp(FairGeoRotation)
void setEulerAngles(const Double_t, const Double_t, const Double_t)
TRotMatrix * createTRotMatrix(const Text_t *name="", const Text_t *title="")
Double_t diff2(const FairGeoRotation &) const
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat s1
GLuint const GLchar * name
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat s0