OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
CoordinateSystemTrafo.cpp
Go to the documentation of this file.
2 #include "Utility/Inform.h"
3 
4 extern Inform *gmsg;
5 
7  origin_m(0.0),
8  orientation_m(1.0, 0.0, 0.0, 0.0),
9  rotationMatrix_m(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0)
10 { }
11 
13  origin_m(right.origin_m),
14  orientation_m(right.orientation_m),
15  rotationMatrix_m(right.rotationMatrix_m)
16 { }
17 
19  const Quaternion &orientation):
20  origin_m(origin),
21  orientation_m(orientation),
22  rotationMatrix_m(orientation_m.getRotationMatrix())
23 { }
24 
29 }
30 
32  CoordinateSystemTrafo result(*this);
33 
34  result *= right;
35  return result;
36 }
37 
43 }
Inform * gmsg
Definition: Main.cpp:62
AntiSymTenzor< T, D > transpose(const AntiSymTenzor< T, D > &rhs)
Tenzor< double, 3 > rotationMatrix_m
void operator*=(const CoordinateSystemTrafo &right)
CoordinateSystemTrafo operator*(const CoordinateSystemTrafo &right) const
Quaternion & normalize()
Definition: Quaternion.cpp:102
Vector_t rotate(const Vector_t &) const
Definition: Quaternion.cpp:122
Quaternion conjugate() const
Definition: Quaternion.h:105
Tenzor< double, 3 > getRotationMatrix() const
Definition: Quaternion.cpp:135
Definition: Inform.h:42