OpenLexocad  27.0
Rotation.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <Geom/geom_defines.h>
4 
5 namespace Geom
6 {
7 class XYZ;
8 class Vec;
9 
10 } // namespace Geom
11 
12 
13 
14 namespace Base
15 {
19 {
20 public:
21  Rotation(void);
22  Rotation(const Geom::Vec& axis, const double radians);
23  Rotation(double m[4][4]);
24  void getValue(Geom::Vec& axis, double& radians) const;
25  Rotation& operator*=(double q);
26 
27  Rotation& setValue(double m[4][4]);
28  Rotation& setValue(const Geom::Vec& axis, const double radians);
29 
30  void multVec(const Geom::Vec& src, Geom::Vec& dst) const;
31 
32 private:
33  double quat[4];
34 };
35 
36 } // namespace Base
Definition: Rotation.h:5
#define GEOM_EXPORT
Definition: geom_defines.h:8
Definition: XYZ.h:46
Defines a non-persistent vector in 3D space.
Definition: Vec.h:45
Definition: AbstractXMLReader.h:8
Definition: Rotation.h:18