28 for (
int i=0;i<9;i++)
fMatrix[i] = 0;
48 if (!matrix) {
Error(
"ctor",
"No rotation is supplied");
return; }
53 gGeometry->GetListOfMatrices()->Add(
this);
62 printf(
"ERROR: This form of TRotMatrix constructor not implemented yet\n");
69 for (i=0;i<9;i++)
fMatrix[i] = 0;
74 gGeometry->GetListOfMatrices()->Add(
this);
102 SetAngles(theta1,phi1,theta2,phi2,theta3,phi3);
106 gGeometry->GetListOfMatrices()->Add(
this);
152 for (
Int_t i=0;i<3;i++) {
153 for (
Int_t j=0;j<3;j++) memcpy(glmatrix,matrix,3*
sizeof(
Double_t));
159 for (
Int_t j=0;j<3;j++) {
188 const Double_t degrad = 0.0174532925199432958;
int Int_t
Signed integer 4 bytes (int).
short Version_t
Class version identifier (short).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
double Double_t
Double 8 bytes.
externTGeometry * gGeometry
Buffer base class used for serializing objects.
virtual Version_t ReadVersion(UInt_t *start=nullptr, UInt_t *bcnt=nullptr, const TClass *cl=nullptr)=0
virtual Int_t CheckByteCount(UInt_t startpos, UInt_t bcnt, const TClass *clss)=0
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=nullptr)=0
virtual Int_t ReadStaticArray(Bool_t *b)=0
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
const char * GetName() const override
Returns name of object.
void Streamer(TBuffer &) override
Stream an object of class TObject.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual const Double_t * SetAngles(Double_t theta1, Double_t phi1, Double_t theta2, Double_t phi2, Double_t theta3, Double_t phi3)
theta1 is the polar angle of the x-prim axis in the main reference system (MRS), theta2 and theta3 ha...
TClass * IsA() const override
void Streamer(TBuffer &) override
Stream an object of class TRotMatrix.
~TRotMatrix() override
RotMatrix default destructor.
virtual void SetReflection()
Checks whether the determinant of this matrix defines the reflection transformation and set the "refl...
virtual void SetMatrix(const Double_t *matrix)
copy predefined 3x3 matrix into TRotMatrix object
TRotMatrix()
RotMatrix default constructor.
virtual Double_t Determinant() const
Returns the value of the determinant of this matrix.
virtual Double_t * GetGLMatrix(Double_t *rGLMatrix) const
Convert this matrix to the OpenGL [4x4].
Double_t Cos(Double_t)
Returns the cosine of an angle of x radians.
Double_t Sin(Double_t)
Returns the sine of an angle of x radians.